/* ===========================
   GOOGLE FONTS
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700&display=swap');
/* ===========================
   RESET
=========================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
html{
    scroll-behavior:smooth;
}
body{
    font-family:'Inter',sans-serif;
    background:#F5F7FB;
    color:#1E293B;
    line-height:1.6;
}
img{
    max-width:100%;
    display:block;
}
a{
    text-decoration:none;
    color:inherit;
}
ul{
    list-style:none;
}
button{
    border:none;
    outline: none;
    cursor:pointer;
    border-radius: 14px;
    padding: 14px 20px;
    font-weight: 600;
    transition: .3s ease;
}
button:hover{
    transform: translateY(-2px);
}
input{
    outline:none;
    font-family:inherit;
}
/* ===========================
   ROOT COLORS
=========================== */
:root{
    --primary:#4F46E5;
    --secondary:#06B6D4;
    --background:#F5F7FB;
    --white:#FFFFFF;
    --dark:#1E293B;
    --gray:#64748B;
    --border:#E2E8F0;
    --shadow:0 10px 30px rgba(0,0,0,.08);
    --radius:18px;
}
/* ===========================
   DASHBOARD LAYOUT
=========================== */
.dashboard{
    display:flex;
    min-height:100vh;
    background: linear-gradient(135deg,#F8FAFC,#eef4ff,#f9fbff);
}
/* ===========================
   SIDEBAR
=========================== */
.sidebar{
    width:260px;
    background:#ffffff;
    border-right: 1px solid #eef2ff;
    padding:30px 20px;
    box-shadow:5px 0 25px rgba(0,0,0, 0,.05);
}
/* ===========================
   MAIN CONTENT
=========================== */
.main-content{
    flex: 1;
    padding: 30px;
    overflow-x: hidden;
}
/* ===========================
   LOGO
=========================== */
.logo{
    margin-bottom:50px;
}
.logo h2{
    font-size:30px;
    font-weight: 800;
    color:#4f6df5;
    letter-spacing: 1px;
}
/* ===========================
   SIDEBAR MENU
=========================== */
.sidebar-menu ul{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.sidebar-menu ul li a{
    display:flex;
    align-items:center;
    gap: 12px;
    padding:14px 18px;
    border-radius:14px;
    text-decoration: none;
    color:#666;
    font-weight:500;
    transition:.3s;
}
.sidebar-menu ul li a:hover{
    background:#eef3ff;
    color:#4f6df5;
    transform:translateX(5px);
}
.sidebar-menu ul li a.active{
    background:#4f6df5;
    color:#fff;
}
/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar{
    width:8px;
}
::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:20px;
}
::-webkit-scrollbar-track{
    background:#f1f5f9;
}
/* ===========================
   TOPBAR
=========================== */
.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:35px;
}
/* ===========================
   SEARCH BAR
=========================== */
.search-bar{
    flex:1;
}
.search-bar input{
    width:100%;
    max-width:420px;
    padding:14px 22px;
    border:1px solid #e8ebf5;
    border-radius:50px;
    background:#fff;
    font-size:15px;
    transition:.3s;
}
.search-bar input:focus{
    border-color:#4f6df5;
    box-shadow:0 0 0 4px rgba(79,109,245,.15);
}
/* ===========================
   TOPBAR ACTIONS
=========================== */
.topbar-actions{
    display:flex;
    align-items:center;
    gap:15px;
}
/* ===========================
   ICON BUTTONS
=========================== */
.notification-btn,
.dark-mode-btn{
    width:48px;
    height:48px;
    border-radius:50%;
    background:#fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0, 0,.08);
    transition:.3s;
}
.notification-btn:hover,
.theme-toggle:hover{
    transform:translateY(-3px);
}
/* ===========================
   USER PROFILE
=========================== */
.user-profile{
    display:flex;
    align-items:center;
    gap:15px;
    background:#fff;
    padding:10px 16px;
    border-radius:50px;
    box-shadow:0 8px 20px rgba(0,0,0, 0,.08);
}
.user-profile img{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
    border: 3px solid #4f6df5;
}
.user-info h4{
    font-size:16px;
    color:var(--dark);
}
.user-info p{
    font-size:13px;
    color:var(--gray);
}
/* ===========================
   WELCOME SECTION
=========================== */
.welcome-section{
    margin-bottom:30px;
}
.welcome-section h1{
    font-size:2rem;
    font-family:'Poppins',sans-serif;
    color:var(--dark);
    margin-bottom:10px;
}
.welcome-section p{
    color:var(--gray);
    font-size:16px;
}
/* ===========================
   STATISTICS CARDS
=========================== */
.stats-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    margin-bottom:35px;
}
.stat-card{
    background:var(--white);
    border-radius:var(--radius);
    padding:25px;
    box-shadow:var(--shadow);
    transition:.35s;
}
.stat-card:hover{
    transform:translateY(-8px);
}
.stat-card:hover .stat-icon{
    transform: rotate(8deg) scale(1.1);
}
.stat-icon{
    width:65px;
    height:65px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:18px;
    background:rgba(79,70,229,.12);
    font-size:28px;
    margin-bottom:20px;
    color: var(--primary);
    transition: .35s;
}
.stat-info h3{
    font-size:15px;
    color:var(--gray);
    margin-bottom:8px;
    font-weight:500;
}
.stat-info h2{
    font-size:2rem;
    color:var(--dark);
    margin-bottom:8px;
}
.stat-info span{
    color:#22c55e;
    font-size:14px;
    font-weight:600;
}
/* ===========================
   ANALYTICS SECTION
=========================== */
.analytics-section{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:25px;
    margin-bottom:35px;
}
.chart-card{
    background:var(--white);
    border-radius:var(--radius);
    padding:25px;
    box-shadow:var(--shadow);
}
.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}
.card-header h2{
    font-size:20px;
    color:var(--dark);
}
.card-header button{
    background:var(--primary);
    color:#fff;
    padding:10px 18px;
    border-radius:10px;
    font-size:14px;
}
.chart-placeholder{
    height:300px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    border:2px dashed var(--border);
    border-radius:15px;
    color:var(--gray);
}
.chart-placeholder h3{
    font-size:22px;
    margin-bottom:12px;
}
/* ===========================
   DASHBOARD GRID
=========================== */
.dashboard-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:25px;
    margin-bottom:35px;
}
/* ===========================
   RECENT ORDERS
=========================== */
.recent-orders{
    background:var(--white);
    padding:25px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}
.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}
.section-header h2{
    font-size:20px;
    color:var(--dark);
}
.section-header a{
    color:var(--primary);
    font-size:14px;
    font-weight:600;
}
/* ===========================
   TABLE
=========================== */
table{
    width:100%;
    border-collapse:collapse;
}
thead{
    background:#F8FAFC;
}
th{
    text-align:left;
    padding:15px;
    color:var(--gray);
    font-size:14px;
}
td{
    padding:18px 15px;
    border-bottom:1px solid var(--border);
    font-size:15px;
}
tbody tr{
    transition:.3s;
}
tbody tr:hover{
    background:#f5f8ff;
    transform: scale(1.01);
}
/* ===========================
   ACTIVITY FEED
=========================== */
.activity-feed{
    background:var(--white);
    padding:25px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}
.activity-item{
    padding:18px 0;
    border-bottom:1px solid var(--border);
}
.activity-item:last-child{
    border-bottom:none;
}
.activity-item h4{
    font-size:15px;
    margin-bottom:6px;
    color:var(--dark);
}
.activity-item p{
    font-size:13px;
    color:var(--gray);
}
/* ===========================
   PERFORMANCE SECTION
=========================== */
.bottom-dashboard{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:25px;
    margin-bottom:40px;
}
.performance-card,
.quick-actions{
    background:var(--white);
    padding:25px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}
/* ===========================
   PROGRESS ITEMS
=========================== */
.progress-item{
    margin-bottom:25px;
}
.progress-item:last-child{
    margin-bottom:0;
}
.progress-item h4{
    font-size:15px;
    margin-bottom:10px;
    color:var(--dark);
}
.progress-item span{
    display:block;
    margin-top:8px;
    font-size:14px;
    color:var(--primary);
    font-weight:600;
}
progress{
    width:100%;
    height:10px;
    appearance:none;
    -webkit-appearance:none;
}
progress::-webkit-progress-bar{
    background:#E2E8F0;
    border-radius:20px;
}
progress::-webkit-progress-value{
    background:var(--primary);
    border-radius:20px;
}
/* ===========================
   QUICK ACTIONS
=========================== */
.quick-actions{
    display:flex;
    flex-direction:column;
}
.quick-actions button{
    width:100%;
    padding:15px;
    margin-bottom:15px;
    background:var(--primary);
    color:#fff;
    border-radius:12px;
    font-size:15px;
    font-weight:600;
    transition:.3s;
}
.quick-actions button:last-child{
    margin-bottom:0;
}
.quick-actions button:hover{
    background:#4338CA;
    transform:translateY(-3px);
}
button:active{
    transform: scale(.96);
}
/* ===========================
   FOOTER
=========================== */
.dashboard-footer{
    text-align:center;
    padding:25px 0;
    color:var(--gray);
    font-size:14px;
    border-top:1px solid var(--border);
    margin-top:20px;
}
.chart-container{
    width: 100%;
    height: 320px;
}
.chart-container canvas{
    width: 100% !important;
    height: 100% !important;
}
/* ===========================
   STATUS BADGES
=========================== */
.status{
    display:inline-block;
    padding:8px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}
.completed{
    background:#DCFCE7;
    color:#15803D;
}
.pending{
    background:#FEF3C7;
    color:#B45309;
}
.processing{
    background:#DBEAFE;
    color:#1D4ED8;
}
/* ===========================
   NOTIFICATION DROPDOWN
=========================== */
.notification-wrapper{
    position:relative;
}
.notification-panel{
    position:absolute;
    top:65px;
    right:0;
    width:300px;
    background:#fff;
    border-radius:15px;
    box-shadow:0 15px 35px rgba(0,0,0,.12);
    padding:20px;
    display:none;
    z-index:999;
}
.notification-panel.show{
    display:block;
}
.notification-panel h3{
    margin-bottom:15px;
    color:var(--dark);
}
.notification-item{
    padding:12px 0;
    border-bottom:1px solid var(--border);
}
.notification-item:last-child{
    border-bottom:none;
}
.notification-item p{
    color:var(--gray);
    font-size:14px;
}
/* ===========================
   DARK MODE
=========================== */
body.dark-mode{
    --background:#0F172A;
    --white:#1E293B;
    --dark:#F8FAFC;
    --gray:#CBD5E1;
    --border:#334155;
}
body.dark-mode .dashboard{
    background: linear-gradient(135deg,#0F172A,#111827,#1e293b);
}
/* ===========================
DARK MODE TABLE FIX
=========================== */
body.dark-mode table{
color: var(--dark);
}
body.dark-mode th{
color: var(--gray);
}
body.dark-mode td{
color: var(--dark);
}
body.dark-mode tbody tr:hover{
background: rgba(255,255,255,0.05);
}
/* ===========================
   FADE-IN ANIMATION
=========================== */
.fade-in{
    opacity:0;
    transform:translateY(30px);
    animation:fadeUp .8s ease forwards;
}
@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* ===========================
   MOBILE MENU
=========================== */
.menu-toggle{
    display:none;
    width:50px;
    height:50px;
    border-radius:12px;
    background:var(--white);
    color:var(--dark);
    box-shadow:var(--shadow);
    font-size:20px;

    position:relative;
    z-index:1101;
}
.menu-toggle:hover{
    background:var(--primary);
    color:#fff;
}
body.dark-mode .menu-toggle{
    background: var(--white);
    color: var(--dark);
}
.empty-card{
    background:#fff;
    border-radius:20px;
    padding:30px;
    margin-top:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}
.empty-state{
    text-align:center;
    padding:30px 20px;
}
.empty-state i{
    font-size:50px;
    color:#4F46E5;
    margin-bottom:20px;
}
.empty-state h4{
    font-size:22px;
    margin-bottom:10px;
    color:#1E293B;
}
.empty-state p{
    color:#64748B;
    font-size:15px;
    line-height:1.6;
}
.dark-mode .empty-card{
    background:#1E293B;
}
.dark-mode .empty-state h4{
    color:#fff;
}
.dark-mode .empty-state p{
    color:#CBD5E1;
}
.calendar-card{
    background:#fff;
    border-radius:20px;
    padding:30px;
    margin-top:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}
.calendar-empty{
    text-align:center;
    padding:30px 20px;
}
.calendar-empty i{
    font-size:55px;
    color:#4F46E5;
    margin-bottom:20px;
}
.calendar-empty h4{
    font-size:22px;
    margin-bottom:10px;
    color:#1E293B;
}
.calendar-empty p{
    color:#64748B;
    margin-bottom:25px;
    line-height:1.6;
}
.calendar-btn{
    background:#4F46E5;
    color:#fff;
    border:none;
    padding:12px 25px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
    transition:.3s;
}
.calendar-btn:hover{
    background:#4338CA;
    transform:translateY(-3px);
}
.dark-mode .calendar-card{
    background:#1E293B;
}
.dark-mode .calendar-empty h4{
    color:#fff;
}
.dark-mode .calendar-empty p{
    color:#CBD5E1;
}
.logout-card{
    background:#fff;
    border-radius:20px;
    padding:30px;
    margin-top:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}
.logout-content{
    text-align:center;
    padding:30px 20px;
}
.logout-content i{
    font-size:60px;
    color:#EF4444;
    margin-bottom:20px;
}
.logout-content h4{
    font-size:24px;
    margin-bottom:10px;
    color:#1E293B;
}
.logout-content p{
    color:#64748B;
    margin-bottom:25px;
    line-height:1.6;
}
.logout-btn{
    background:#EF4444;
    color:#fff;
    border:none;
    padding:14px 35px;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
    transition:.3s;
}
.logout-btn:hover{
    background:#DC2626;
    transform:translateY(-3px);
}
.dark-mode .logout-card{
    background:#1E293B;
}
.dark-mode .logout-content h4{
    color:#fff;
}
.dark-mode .logout-content p{
    color:#CBD5E1;
}
.notification{
    position:relative;
}
.notification-btn{
    width:48px;
    height:48px;
    border:none;
    border-radius:12px;
    background:var(--white);
    box-shadow:var(--shadow);
    cursor:pointer;
    position:relative;
    font-size:18px;
}
.notification-badge{
    position:absolute;
    top:6px;
    right:8px;
    width:18px;
    height:18px;
    background:#EF4444;
    color:#fff;
    border-radius:50%;
    font-size:11px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.notification-dropdown{
    position:absolute;
    right:0;
    top:60px;
    width:320px;
    background:var(--white);
    border-radius:18px;
    box-shadow:0 20px 40px rgba(0,0,0,.12);
    padding:20px;
    display:none;
    z-index:999;
}
.notification-dropdown.active{
    display:block;
}
.notification-item{
    display:flex;
    gap:15px;
    padding:15px 0;
    border-bottom:1px solid #eee;
}
.notification-item:last-child{
    border-bottom:none;
}
.notification-item i{
    color:#4F46E5;
    font-size:20px;
    margin-top:5px;
}
.dashboard-card{
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(0,0,0, 0,.05);
    box-shadow: 0 10px 35px rgba(0,0,0, 0,.06);
    transition: .35 ease;
}
.dashboard-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(59, 130,246,.12);
}
*{
    transition: 
    background .3s ease,
    color .3s ease,
    box-shadow .3s ease,
    transform .3s ease;
}
::-webkit-scrollbar{
    width: 8px;
}
::-webkit-scrollbar-track{
    background: #f5f7fb;
}
::-webkit-scrollbar-thumb{
    background: #4f6df5;
    border-radius: 20px;
}
progress{
    width: 100%;
    height: 10PX;
    border: none;
    border-radius: 20px;
    overflow: hidden;
}
progress::-webkit-progress-bar{
    background: #eef1f8;
}
progress::-webkit-progress-value{
    background: linear-gradient(90deg,#4f6df5,#6b8cff);
}
.dashboard-card,
.stat-card,
.chart-card,
.recent-orders,
.activity-feed,
.performance-card,
.quick-actions{
    animation: fadeUp .6s ease;
}

@keyframes fadeUp{
    from{
        opacity: 0;
        transform: translateY(20px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}