/* ================= DARK LIBRARY THEME ================= */
:root{
    --bg:#0f1115;
    --sidebar:#151922;
    --sidebar2:#1c2230;
    --accent:#d4af37;      /* Library Gold */
    --text:#e6e6e6;
    --muted:#9aa4b2;
    --card:#1b1f2a;
}

*{box-sizing:border-box}

body{
    margin:0;
    font-family:'Noto Serif Myanmar',serif;
    background:var(--bg);
    color:var(--text);
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

/* ================= HEADER ================= */
.navbar{
    height:62px;
    background:linear-gradient(90deg,var(--sidebar),var(--sidebar2));
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 19px;
    border-bottom:2px solid var(--accent);
}

.nav-left{
    display:flex;
    align-items:center;
    gap:8px;
}

.mobile-btn{
    display:none;
    font-size:24px;
    background:none;
    border:none;
    color:var(--text);
    cursor:pointer;
}

/* Brand */
.brand-wrap{
    display:flex;
    align-items:center;
    gap:12px;
}
.brand-logo{
    width:150px;
    height:60px;
    border-radius:13%;
    border:2px solid var(--accent);
    object-fit:cover;
}
.brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}
.brand-text strong{
    font-size:17px;
    letter-spacing:.5px;
}
.brand-text span{
    font-size:12px;
    color:var(--muted);
}

/* Search */
.search-box{
    position:relative;
}
.search-box input{
    padding:7px 32px 7px 12px;
    border-radius:20px;
    border:1px solid #2a3142;
    background:#111520;
    color:var(--text);
    outline:none;
    font-size:14px;
}
.search-box i{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    color:var(--muted);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
    transition: all 0.2s;
}

.user-badge a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.user-badge:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Logout ကို နည်းနည်းထင်ရှားအောင် */
.user-badge:last-child {
    background: #dc3545;
    border-color: #dc3545;
}

.user-badge:last-child a {
    color: white;
}

.user-badge:last-child:hover {
    background: #c82333;
}
/* ================= LAYOUT ================= */
.wrapper{
    display:flex;
    flex:1;
}

/* ================= SIDEBAR ================= */
.sidebar{
    width:260px;
    background:linear-gradient(180deg,var(--sidebar),var(--sidebar2));
    padding:22px 18px;
}

.menu a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    color:var(--text);
    text-decoration:none;
    border-radius:10px;
    margin-bottom:8px;
    transition:.25s;
    border-left:4px solid transparent;
}

.menu a.active,
.menu a:hover{
    background:#1f2636;
    border-left:4px solid var(--accent);
    transform:translateX(4px);
}

/* ================= MAIN ================= */
.main{
    flex:1;
    padding:26px;
}

/* Stats */
.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
    margin-bottom:26px;
}

.stat-card{
    background:linear-gradient(160deg,#1b1f2a,#161a24);
    padding:20px;
    border-radius:14px;
    border:1px solid #262d40;
    display:flex;
    align-items:center;
    gap:16px;
}

.stat-card i{
    font-size:32px;
    color:var(--accent);
}

.stat-card h3{
    margin:0;
    font-size:26px;
}

.stat-card p{
    margin:2px 0 0;
    font-size:13px;
    color:var(--muted);
}

.card{
    background:var(--card);
    padding:22px;
    border-radius:14px;
    border:1px solid #262d40;
}

/* ================= FOOTER ================= */
.library-footer{
    background:linear-gradient(180deg,#111520,#0c0f16);
    color:#cfcfcf;
    padding:36px 20px 18px;
    border-top:2px solid var(--accent);
}

.footer-wrap{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:26px;
}

.footer-box h4{
    margin-bottom:12px;
    color:var(--accent);
}

.footer-box p,
.footer-box a{
    font-size:14px;
    color:#cfcfcf;
    text-decoration:none;
}

.footer-box ul{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-box ul li{
    margin-bottom:8px;
}

.footer-box a:hover{
    color:var(--accent);
}

.social a{
    margin-right:12px;
    font-size:18px;
    color:var(--accent);
}

.footer-bottom{
    text-align:center;
    margin-top:26px;
    font-size:13px;
    color:#9aa4b2;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .mobile-btn { display: block; }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 72px;
        height: calc(100% - 72px);       /* header နဲ့ မထိအောင် */
        width: 260px;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;                 /* scroll ပေါ်လာမယ် */
        -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
    }

    .sidebar.active {
        left: 0;
    }

    /* Scrollbar အလှဆင်မှု (Chrome, Edge, etc) */
    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    .sidebar .menu-item {
    margin-bottom: 12px;  /* နည်းနည်းပူးချင်ရင် 8px–12px ကြား ထားပါ */
}

}