/* =========================================
   RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    min-height:100%;
    overflow-x:hidden;
}

body{
    background:#020617;
    color:#ffffff;
    font-family:Arial,sans-serif;
}

body.sidebar-open{
    overflow:hidden;
}

/* =========================================
   MOBILE TOGGLE
========================================= */

.mobile-toggle{
    display:none;
    position:fixed;
    top:16px;
    left:16px;
    width:52px;
    height:52px;
    border:none;
    border-radius:14px;
    background:#081b35;
    color:#fff;
    font-size:24px;
    cursor:pointer;
    z-index:10001;
    box-shadow:0 8px 20px rgba(0,0,0,0.35);
}

/* =========================================
   OVERLAY
========================================= */

.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.65);
    z-index:9998;
    display:none;
}

.overlay.show{
    display:block;
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:280px;
    height:100vh;
    background:#06162c;
    padding:24px 18px;
    overflow-y:auto;
    border-right:1px solid rgba(255,255,255,0.05);
    z-index:9999;
    transition:transform .3s ease;
}

.sidebar::-webkit-scrollbar{
    width:5px;
}

.sidebar::-webkit-scrollbar-thumb{
    background:#13203b;
    border-radius:20px;
}

/* =========================================
   LOGO
========================================= */

.logo{
    margin-bottom:32px;
}

.logo h1{
    font-size:34px;
    font-weight:800;
    line-height:36px;
}

.logo span{
    color:#22c55e;
}

.logo p{
    margin-top:8px;
    color:#94a3b8;
    font-size:14px;
}

/* =========================================
   MENU
========================================= */

.menu-title{
    color:#64748b;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:2px;
    margin-bottom:14px;
}

.sidebar a{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    padding:14px 16px;
    margin-bottom:10px;
    border-radius:14px;
    color:#fff;
    text-decoration:none;
    font-size:15px;
    transition:.2s ease;
}

.sidebar a:hover{
    background:#13203b;
}

.sidebar a.active{
    background:#13203b;
}

/* =========================================
   MAIN
========================================= */

.main{
    margin-left:280px;
    width:calc(100% - 280px);
    min-height:100vh;
    padding:30px;
}

/* =========================================
   TOPBAR
========================================= */

.topbar{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    margin-bottom:24px;
}

.user-box{
    background:#081b35;
    border:1px solid rgba(255,255,255,0.05);
    border-radius:18px;
    padding:16px 20px;
}

.user-box strong{
    display:block;
    font-size:18px;
    margin-bottom:4px;
}

.user-box span{
    color:#94a3b8;
    font-size:13px;
}

/* =========================================
   PAGE TITLE
========================================= */

.page-title{
    margin-bottom:28px;
}

.page-title h2{
    font-size:48px;
    line-height:52px;
    font-weight:800;
    margin-bottom:10px;
}

.page-title p{
    color:#94a3b8;
    font-size:16px;
}

/* =========================================
   CARDS
========================================= */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
    margin-bottom:30px;
}

.card{
    background:linear-gradient(180deg,#081b35 0%,#06162c 100%);
    border:1px solid rgba(255,255,255,0.05);
    border-radius:22px;
    padding:24px;
    box-shadow:0 10px 24px rgba(0,0,0,0.25);
}

.card-icon{
    width:58px;
    height:58px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    margin-bottom:18px;
}

.green{
    background:#14532d;
}

.blue{
    background:#1d4ed8;
}

.orange{
    background:#9a3412;
}

.red{
    background:#7f1d1d;
}

.card h3{
    font-size:18px;
    margin-bottom:10px;
}

.card p{
    font-size:34px;
    font-weight:800;
}

/* =========================================
   TABLE
========================================= */

.table-box{
    background:#081b35;
    border-radius:22px;
    border:1px solid rgba(255,255,255,0.05);
    overflow:hidden;
}

.table-header{
    padding:20px 24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.table-header h3{
    font-size:22px;
    margin-bottom:4px;
}

.table-header p{
    color:#94a3b8;
    font-size:14px;
}

.table-responsive{
    width:100%;
    overflow-x:auto;
}

.table-responsive::-webkit-scrollbar{
    height:6px;
}

.table-responsive::-webkit-scrollbar-thumb{
    background:#13203b;
    border-radius:20px;
}

table{
    width:100%;
    min-width:850px;
    border-collapse:collapse;
}

table th{
    background:#13203b;
    font-size:14px;
    font-weight:600;
}

table th,
table td{
    padding:16px;
    text-align:left;
    border-bottom:1px solid rgba(255,255,255,0.05);
    font-size:14px;
}

table tr:hover{
    background:#0f172a;
}

/* =========================================
   STATUS
========================================= */

.status-active{
    color:#22c55e;
    font-weight:bold;
}

.status-pending{
    color:#facc15;
    font-weight:bold;
}

.status-suspended{
    color:#ef4444;
    font-weight:bold;
}

/* =========================================
   BUTTONS
========================================= */

.btn{
    display:inline-block;
    background:#22c55e;
    color:#fff;
    text-decoration:none;
    padding:12px 18px;
    border-radius:12px;
    font-size:14px;
    font-weight:700;
    border:none;
    cursor:pointer;
}

.btn:hover{
    opacity:.9;
}

.btn-small{
    display:inline-block;
    padding:8px 12px;
    border-radius:10px;
    text-decoration:none;
    color:#fff;
    font-size:13px;
    font-weight:700;
    margin-right:5px;
    margin-bottom:5px;
}

.green-btn{
    background:#22c55e;
}

.red-btn{
    background:#ef4444;
}

/* =========================================
   TABLET
========================================= */

@media(max-width:1100px){

    .cards{
        grid-template-columns:repeat(2,1fr);
    }

    .page-title h2{
        font-size:40px;
        line-height:44px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

    .mobile-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .sidebar{
        width:280px;
        max-width:85%;
        transform:translateX(-100%);
        padding-top:80px;
    }

    .sidebar.show-sidebar{
        transform:translateX(0);
    }

    .main{
        margin-left:0;
        width:100%;
        padding:86px 14px 20px;
    }

    .topbar{
        justify-content:flex-start;
        margin-bottom:18px;
    }

    .user-box{
        width:100%;
    }

    .page-title{
        margin-bottom:22px;
    }

    .page-title h2{
        font-size:30px;
        line-height:34px;
    }

    .page-title p{
        font-size:14px;
    }

    .cards{
        grid-template-columns:1fr;
        gap:14px;
    }

    .card{
        padding:20px;
        border-radius:18px;
    }

    .card-icon{
        width:52px;
        height:52px;
        font-size:22px;
        margin-bottom:14px;
    }

    .card h3{
        font-size:16px;
    }

    .card p{
        font-size:30px;
    }

    .table-box{
        border-radius:18px;
    }

    .table-header{
        padding:16px;
    }

    .table-header h3{
        font-size:18px;
    }

    .btn{
        width:100%;
        text-align:center;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media(max-width:480px){

    .mobile-toggle{
        width:48px;
        height:48px;
        top:12px;
        left:12px;
    }

    .sidebar{
        max-width:88%;
    }

    .logo h1{
        font-size:28px;
    }

    .page-title h2{
        font-size:26px;
        line-height:30px;
    }

    .card p{
        font-size:26px;
    }
}