/* ===================================
   GLOBAL
=================================== */

body{
    font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
    background:#f1f5f9;
    margin:0;
}

/* ===================================
   APP LAYOUT
=================================== */

.app-layout{
    display:flex;
}

/* push content when sidebar open */

.app-layout.sidebar-open .main-content{
    margin-left:260px;
}

/* ===================================
   SIDEBAR
=================================== */

.sidebar{
    width:260px;
    height:100vh;

    position:fixed;
    top:0;
    left:0;

    background:linear-gradient(160deg,#0f172a,#020617);
    box-shadow:6px 0 25px rgba(0,0,0,.45);

    transition:transform .3s ease;

    z-index:1000;
}

/* toggle states */

.sidebar.open{
    transform:translateX(0);
}

.sidebar.closed{
    transform:translateX(-260px);
}

/* sidebar header */

.sidebar-header{
    padding:22px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.logo{
    font-size:20px;
    font-weight:600;
    color:white;
}

/* ===================================
   NAVIGATION
=================================== */

.nav-list{
    list-style:none;
    padding:20px 10px;
}

.nav-item{
    margin:8px 0;
}

.nav-link{
    display:flex;
    align-items:center;
    gap:12px;

    padding:14px 18px;

    border-radius:12px;

    text-decoration:none;

    color:#cbd5e1;

    font-size:16px;

    transition:all .25s ease;
}

.nav-link i{
    font-size:18px;
}

/* hover animation */

.nav-link:hover{
    background:rgba(255,255,255,0.05);
    transform:translateX(6px);
    color:white;
}

/* active page */

.nav-link.active{
    background:linear-gradient(135deg,#3b82f6,#2563eb);
    color:white;

    box-shadow:
        0 8px 20px rgba(59,130,246,.35),
        inset 0 1px 0 rgba(255,255,255,.15);
}

/* ===================================
   MAIN CONTENT
=================================== */

.main-content{
    flex:1;
    display:flex;
    flex-direction:column;
    width:100%;
}

/* ===================================
   TOPBAR
=================================== */

.topbar{
    height:60px;

    background:white;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 20px;

    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

/* menu button */

.menu-btn{
    font-size:22px;
    border:none;
    background:none;
    cursor:pointer;
}

/* right side */

.topbar-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.notification{
    font-size:18px;
    cursor:pointer;
}

/* login button */

.login-btn{
    background:#2563eb;
    color:white;
    border:none;

    padding:8px 18px;

    border-radius:8px;

    cursor:pointer;

    transition:.2s;
}

.login-btn:hover{
    background:#1d4ed8;
}

/* ===================================
   PAGE CONTENT
=================================== */

.page-body{
    padding:30px;
}

/* ===================================
   DASHBOARD CARDS
=================================== */

.dashboard-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.card{
    background:white;

    padding:20px;

    border-radius:14px;

    box-shadow:0 6px 15px rgba(0,0,0,.08);

    transition:.2s;
}

.card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 20px rgba(0,0,0,.12);
}

.card-title{
    font-size:16px;
    color:#64748b;
}

.card-value{
    font-size:28px;
    font-weight:bold;
    margin-top:8px;
}

/* ===================================
   HERO SECTION
=================================== */

.hero-section{
    position:relative;
    background:linear-gradient(135deg,#0d6efd,#0a58ca);
    padding:80px 0;
}

.hero-overlay{
    background:rgba(0,0,0,0.35);
    padding:80px 0;
}

.hero-section h1,
.hero-section p{
    color:white;
}

/* ===================================
   ABOUT PAGE
=================================== */

.about-section{
    margin-top:60px;
    margin-bottom:40px;
    max-width:900px;
    margin-left:auto;
    margin-right:auto;
}

.section-title{
    font-weight:700;
    margin-bottom:20px;
    text-align:center;
}

.about-text{
    font-size:18px;
    line-height:1.7;
    color:#444;
    margin-bottom:20px;
}

/* ===================================
   MOBILE RESPONSIVE
=================================== */

@media (max-width:768px){

.sidebar{
    transform:translateX(-260px);
}

.sidebar.open{
    transform:translateX(0);
}

/* content should NOT push on mobile */

.app-layout.sidebar-open .main-content{
    margin-left:0;
}

.about-text{
    font-size:16px;
    padding:0 10px;
}

.section-title{
    font-size:24px;
}

}

.footer{
    text-align:center;
    padding:15px;
    background:#020617;
    color:#cbd5e1;
    font-size:14px;
    border-top:1px solid rgba(255,255,255,0.05);
}