/* ==========================================================================
   GuardianConnect — Theme Color System & Component Styles
   Bootstrap 5 base (CDN) + custom design tokens. No build step required.
   ========================================================================== */

:root {
    /* Color System — derived from reference design (navy + coral) */
    --gc-navy: #0F2A4A;
    --gc-navy-dark: #0A1D33;
    --gc-navy-light: #1E3E63;
    --gc-coral: #F0724A;
    --gc-coral-dark: #D9613C;
    --gc-coral-soft: #FDEEE8;
    --gc-green: #2E9E6B;
    --gc-green-soft: #E6F5EE;
    --gc-purple: #6C63C4;
    --gc-purple-soft: #EEECFB;
    --gc-text: #2D3748;
    --gc-text-muted: #6B7688;
    --gc-border: #E7EAF0;
    --gc-bg-soft: #F7F8FA;
    --gc-white: #FFFFFF;

    /* Typography */
    --gc-font-heading: 'Poppins', sans-serif;
    --gc-font-body: 'Inter', sans-serif;

    /* Layout */
    --gc-sidebar-width: 260px;
    --gc-topbar-height: 64px;
    --gc-radius: 12px;
    --gc-radius-sm: 8px;
    --gc-shadow: 0 4px 20px rgba(15, 42, 74, 0.08);
    --gc-shadow-sm: 0 2px 8px rgba(15, 42, 74, 0.06);
}

body {
    font-family: var(--gc-font-body);
    color: var(--gc-text);
    background-color: var(--gc-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gc-font-heading);
    color: var(--gc-navy);
    font-weight: 700;
}

.gc-brand-primary { color: var(--gc-navy); }
.gc-brand-accent { color: var(--gc-coral); }

/* ==========================================================================
   Public Site — Topbar / Navbar
   ========================================================================== */
.gc-topbar {
    background: var(--gc-navy-dark);
    color: #fff;
}

.gc-navbar {
    background: var(--gc-white);
    box-shadow: var(--gc-shadow-sm);
    padding: 0.9rem 0;
}

.gc-navbar .nav-link {
    color: var(--gc-text);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.gc-navbar .nav-link.active,
.gc-navbar .nav-link:hover {
    color: var(--gc-navy);
    border-bottom: 2px solid var(--gc-coral);
}

.gc-logo-icon {
    color: var(--gc-coral);
    font-size: 1.6rem;
}

.gc-brand-tagline {
    font-size: 0.65rem;
    color: var(--gc-text-muted);
    font-weight: 400;
}

.gc-btn-primary {
    background: var(--gc-navy);
    color: #fff;
    border-radius: var(--gc-radius-sm);
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    border: none;
    transition: background 0.2s ease;
}

.gc-btn-primary:hover {
    background: var(--gc-navy-light);
    color: #fff;
}

.gc-btn-coral {
    background: var(--gc-coral);
    color: #fff;
    border-radius: var(--gc-radius-sm);
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    border: none;
    transition: background 0.2s ease;
}

.gc-btn-coral:hover {
    background: var(--gc-coral-dark);
    color: #fff;
}

.gc-badge-soft {
    background: var(--gc-coral-soft);
    color: var(--gc-coral-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.gc-hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
}

/* ==========================================================================
   Public Site — Footer
   ========================================================================== */
.gc-footer {
    background: var(--gc-navy-dark);
    color: #C5CEDB;
}

.gc-footer-muted { color: #93A0B5; }

.gc-footer-links li { margin-bottom: 0.5rem; }
.gc-footer-links a {
    color: #93A0B5;
    text-decoration: none;
    font-size: 0.9rem;
}
.gc-footer-links a:hover { color: var(--gc-coral); }

.gc-social-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}
.gc-social-icon:hover { background: var(--gc-coral); }

.gc-footer-bottom {
    background: var(--gc-navy);
    color: #93A0B5;
    font-size: 0.85rem;
}

/* ==========================================================================
   Portal Layout (Admin / Customer / Guardian / Doctor)
   ========================================================================== */
.gc-portal-body { background: var(--gc-bg-soft); }

.gc-portal-wrapper {
    display: flex;
    min-height: 100vh;
}

.gc-sidebar {
    width: var(--gc-sidebar-width);
    background: var(--gc-navy-dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    transition: transform 0.25s ease;
}

.gc-sidebar-brand {
    height: var(--gc-topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gc-sidebar-user {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gc-sidebar-role {
    color: var(--gc-coral);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gc-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.75rem;
}

.gc-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: #B7C1D3;
    text-decoration: none;
    border-radius: var(--gc-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.gc-sidebar-link i { font-size: 1.05rem; width: 20px; }

.gc-sidebar-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.gc-sidebar-link.active {
    background: var(--gc-coral);
    color: #fff;
}

.gc-sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.gc-portal-main {
    flex: 1;
    margin-left: var(--gc-sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gc-topbar-portal {
    height: var(--gc-topbar-height);
    background: var(--gc-white);
    border-bottom: 1px solid var(--gc-border);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.gc-portal-content {
    padding: 1.75rem;
    flex: 1;
}

.gc-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gc-coral);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.gc-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gc-bg-soft);
    border: none;
}

.gc-notif-dot {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--gc-coral);
    border-radius: 50%;
    border: 2px solid #fff;
}

.gc-dropdown-menu {
    border: none;
    box-shadow: var(--gc-shadow);
    border-radius: var(--gc-radius-sm);
    min-width: 220px;
}

.gc-sidebar-toggle {
    background: var(--gc-bg-soft);
    border: none;
}

/* Cards used across portals for stat widgets, plan cards, etc. */
.gc-card {
    background: #fff;
    border-radius: var(--gc-radius);
    box-shadow: var(--gc-shadow-sm);
    border: 1px solid var(--gc-border);
    padding: 1.5rem;
}

.gc-alert { border-radius: var(--gc-radius-sm); border: none; }

/* ==========================================================================
   Auth Pages
   ========================================================================== */
.gc-auth-body { background: var(--gc-bg-soft); }

.gc-auth-wrapper { min-height: 100vh; padding: 2rem; }

.gc-auth-card {
    background: #fff;
    border-radius: var(--gc-radius);
    box-shadow: var(--gc-shadow);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

/* ==========================================================================
   Responsive — Sidebar collapse on mobile/tablet
   ========================================================================== */
@media (max-width: 991.98px) {
    .gc-sidebar {
        transform: translateX(-100%);
    }
    .gc-sidebar.show {
        transform: translateX(0);
    }
    .gc-portal-main {
        margin-left: 0;
    }
}
