:root {
    --primary-color: #2563EB;
    --secondary-color: #0891b2;
    --accent-color: #3b82f6;
    --dark-bg: #ffffff;
    --card-bg: #f8fafc;
    --text-color: #0284c7;
    --light-text: #334155;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    color: var(--light-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
}

.dashboard-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    z-index: 20;
    padding: 22px 18px;
    overflow-y: auto;
}

.dashboard-panel::-webkit-scrollbar {
    width: 4px;
}

.dashboard-panel::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-panel::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 999px;
}

.dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.sidebar-collapse-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 10px;
    background: #ffffff;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.sidebar-reopen-btn {
    position: fixed;
    top: 18px;
    left: 14px;
    z-index: 25;
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.sidebar-reopen-btn span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto 4px;
    border-radius: 999px;
    background: #ffffff;
}

.sidebar-reopen-btn span:last-child {
    margin-bottom: 0;
}

.dashboard-kicker {
    margin: 0 0 4px;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
}

.dashboard-head h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.12rem;
}

.dashboard-section {
    margin-bottom: 14px;
}

.signin-tag {
    width: auto;
    padding: 7px 12px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.14);
    font-size: 0.74rem;
    font-weight: 600;
}

.dashboard-section-title {
    margin: 0 0 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.dashboard-quick-links {
    display: grid;
    gap: 6px;
}

.dashboard-quick-links a {
    text-decoration: none;
    color: #1d4ed8;
    background: #f5f9ff;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 0.76rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dashboard-quick-links a:hover {
    background: #eaf3ff;
    color: #1e3a8a;
}

.signup-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.signup-modal.hidden {
    display: none;
}

.signup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.34);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.signup-card {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 22px;
    padding: 24px 22px 20px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.signup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: #ffffff;
    color: var(--primary-color);
    font-size: 1.25rem;
    line-height: 1;
}

.signup-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.signup-card h3 {
    margin: 0;
    color: #1e3a8a;
    font-size: 1.45rem;
}

.signup-copy {
    margin: 8px 0 16px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.45;
}

.signup-form {
    display: grid;
    gap: 10px;
}

.signup-form input {
    margin: 0;
}

.signup-status {
    margin: 12px 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.signup-status.hidden {
    display: none;
}

.sankofa-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

body.sidebar-collapsed .dashboard-panel {
    transform: translateX(-100%);
}

body.sidebar-collapsed .sankofa-main {
    margin-left: 0;
}

body.sidebar-collapsed .sidebar-reopen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 20px;
}

.sankofa-top-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0 12px;
    width: 100%;
    padding: 24px 16px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    line-height: 1.1;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

header {
    text-align: center;
    margin-bottom: 18px;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-size: 2.5rem;
    background: -webkit-linear-gradient(var(--secondary-color), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2em;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin: -2px 0 0;
    font-weight: 500;
    letter-spacing: 1px;
}

.sub-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 2px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    width: auto;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover {
    background: #dbeafe;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: bold;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--secondary-color);
    background: #ffffff;
}

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.4rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

input, select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--light-text);
    box-sizing: border-box;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.result-box {
    margin-top: 15px;
    padding: 15px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    min-height: 50px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--light-text);
}

.sankofa-footer {
    margin: 28px auto 8px;
    max-width: 900px;
    text-align: center;
    padding: 14px 16px 8px;
    border-top: 1px solid rgba(100, 116, 139, 0.22);
}

.footer-back-link {
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: #475569;
    letter-spacing: 0.01em;
}

.footer-meta-row {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #64748b;
}

.footer-meta-row a {
    text-decoration: none;
    color: #64748b;
}

.footer-meta-row a:hover {
    color: #334155;
}

.footer-disclaimer {
    margin: 10px auto 0;
    max-width: 780px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}

@media (max-width: 768px) {
    body {
        display: block;
    }

    .dashboard-panel {
        position: relative;
        width: 100%;
        height: auto;
        transform: none !important;
        border-right: none;
        border-bottom: 1px solid rgba(37, 99, 235, 0.12);
        box-shadow: none;
    }

    .sidebar-reopen-btn,
    .sidebar-collapse-btn {
        display: none;
    }

    .sankofa-main {
        margin-left: 0;
    }

    .container {
        padding: 8px 16px 16px;
    }

    .sankofa-top-strip {
        margin-bottom: 10px;
        padding: 18px 12px;
        font-size: 1.45rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .tabs {
        gap: 10px;
    }

    .tab-btn {
        width: 100%;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-meta-row {
        gap: 6px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
