@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


:root {
    --brand-navy: #001A72;
    --brand-teal: #00AF66;
    --sky-blue: #3B82F6;
    --white: #ffffff;
    --text-muted: #64748b;
    --text-main: #1A1A1B;
    --border: #E2E8F0;
    --bg-main: #F9FAFB;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}


body{
    background: var(--bg-main);
    height: 100vh;
    max-width: 2000px;
    margin: 0 auto;
}

.dashboard-layout {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.sidebar {
    width: 250px;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    border-right: 1px solid var(--border);
}
.sidebar-top{
     padding: 26px 20px 22px;
    height: 80px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-top .sidebar-img {
    height: 70%;
    width: 70%;
}
.sidebar-top .sidebar-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.sidebar-nav{
     flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow-y: auto;
}
.nav-group {
    padding: 14px 8px 5px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.navlink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
     transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navlink i {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.navlink:hover:not(.active) {
    background: var(--bg-main);
    color: var(--text-main);
     transform: translateX(4px); /* Premium interaction feel */
}

.navlink.active {
    background: var(--brand-navy);
    color: #fff;
    font-weight: 600;
}
a{
    text-decoration: none;
}
.navlink.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--brand-teal);
    border-radius: 0 3px 3px 0;
}
.navlink.logout{
    background-color:rgba(241, 133, 133, 0.1) ;
    color: red;
}
.sidebar-bottom {
    padding: 12px 10px;
    border-top: 1px solid var(--border);
}
.dashboard-content {
    flex: 1;
    height: 100%;
    overflow-y: scroll;

    
}

/* ─────────────────────────────────────────
   TOPBAR
───────────────────────────────────────── */
.topbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.topbar-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}


.topbar-center {
    flex: 0 1 340px;
}

.search-wrap {
    position: relative;
}

.search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.search-wrap input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    background: #F9FAFB;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.825rem;
    color: var(--text-main);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-wrap input::placeholder {
    color: var(--text-muted);
}

.search-wrap input:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 179, 125, 0.1);
    background: var(--white);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-right { position: relative; }

/* Topbar notification panel */
.topbar-notif-panel {
    position: absolute;
    top: 48px;
    right: 0;
    width: 320px;
    max-height: 420px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(7,10,24,0.15);
    overflow: hidden;
    display: none;
    z-index: 1400;
}
.topbar-notif-panel.open { display: block; }
.topbar-notif-panel.open { animation: slideDown .18s ease both; }

.notif-count {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 99px;
        background: var(--brand-teal);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 800;
        display: none;
        align-items: center;
        justify-content: center;
}

.tpn-header { display:flex; align-items:center; justify-content:space-between; }
.tpn-header-actions { display:flex; gap:8px }
.tpn-clear { border:0; background:transparent; color:var(--text-muted); cursor:pointer; font-weight:700 }
.tpn-clear:hover { color:var(--brand-teal) }

.tpn-item.unread { background: var(--bg-main); }
.tpn-item { transition: background .12s; }

@keyframes slideDown {
    from { transform: translateY(-6px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.topbar-notif-panel .tpn-header {
    padding: 12px 14px;
    font-weight: 800;
    color: var(--brand-navy);
    border-bottom: 1px solid var(--border);
}
.tpn-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; }
.tpn-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--bg-main); align-items: flex-start; }
.tpn-item:last-child { border-bottom: none; }
.tpn-type { width: 36px; height: 36px; border-radius: 8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:#fff; font-size:0.9rem }
.tpn-body { flex: 1; min-width: 0; }
.tpn-text { font-size: 0.9rem; color:var(--text-main); font-weight:600 }
.tpn-meta { font-size: 0.78rem; color:var(--text-muted); margin-top:4px }
.tpn-time { font-size: 0.72rem; color:var(--text-muted); margin-left:8px }
.tpn-footer { padding: 10px 14px; border-top: 1px solid var(--border); text-align: center }
.tpn-footer a { color: var(--brand-teal); font-weight:700 }
.tpn-type.success { background: var(--brand-teal); }
.tpn-type.info { background: var(--brand-navy); }
.tpn-type.warn { background: #DC2626; }

.tb-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.15s;
    color: var(--text-muted);
}

.tb-icon-btn i {
    font-size: 1.1rem;
}

.tb-icon-btn:hover {
    background: #F9FAFB;
}

.notif-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
    background: var(--brand-teal);
    border-radius: 50%;
    border: 1.5px solid var(--white);
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
    cursor: pointer;
}

.tp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.04);
}

.tp-info {
    text-align: right;
}

.tp-name {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-main);
}

.tp-plan {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}


/* Menu Toggle Button */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 12px;
}

.menu-toggle:hover {
    background: var(--border);
}

.menu-toggle i {
    font-size: 1rem;
    color: var(--text-main);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}


.content {
    padding: 24px 28px 48px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* Responsive Styles  */
@media (max-width: 900px) {
     .topbar-left {
        display: flex;
        align-items: center;
        flex: 1;
    }
    .menu-toggle {
        display: flex;
    }
     .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100%;
        z-index: 200;
        transition: left 0.3s;
    }
    .sidebar.active {
        left: 0;
    }
    .icon-help{
        display: none !important;
    }
}

@media (max-width: 600px) {
    .topbar {
        padding: 10px 12px;
        height: 70px;
    }
    .topbar-center {
        display: none;
    }
    .tp-info {
        display: none;
    }
    .tp-avatar {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .search-wrap input {
        display: none;
    }
     .content {
        padding: 16px;
        gap: 14px;
    }

}



.btn{
    padding: 10px 18px;
    background: none;
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    font-size: 0.825rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}


.btn.teal {
    background: var(--brand-teal);
}
.btn.teal:hover {
    background: #00AF66cc;
}

.btn.outline-teal {
    background: transparent;
    border: 1px solid var(--brand-teal);
    color: var(--brand-teal);
}
.btn.outline-teal:hover {
    background: #00AF66cc;
    color: #fff;
}
.btn.outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn.navy {
    background: var(--brand-navy);
}
.btn.navy:hover {
    background: #001A72cc;
}

.btn.ghost{
     background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn.danger{
    background: #EF4444;
    color: #fff;
}







.faq-section {
    width: 100%;
}

.faq-container {
    /* max-width: 1100px; */
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}
.faq-header h2 {
    color: var(--brand-navy);
    font-size: 1.6rem;
}
.faq-header p {
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.5;
}

.support-btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: #f1f5f9;
    font-weight: 600;
    cursor: pointer;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exact two-column layout */
    gap: 15px;
}

.faq-item {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--brand-navy);
}

/* Mobile Responsive */
@media (max-width: 850px) {
    .faq-grid { grid-template-columns: 1fr; }
    .faq-header { flex-direction: column; gap: 20px; }
}
.faq-item {
    display: flex;
    flex-direction: column;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    background: var(--white);
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--brand-navy);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    max-height: 100px; /* Adjust based on answer length */
    padding-top: 15px;
}


