@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
}

* {
    font-family: 'Cairo', sans-serif;
}

body {
    background: #0f172a;
    color: white;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* Sidebar */

.sidebar {
    width: 260px;
    height: 100vh;
    background: #111827;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1040;
    padding: 24px;
    border-left: 1px solid #1f2937;
    transition: .3s;
}

.sidebar-title {
    font-size: 24px;
    font-weight: bold;
    color: #38bdf8;
    margin-bottom: 30px;
}

.menu-item {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 12px;
    color: #cbd5e1;
    transition: .3s;
    cursor: pointer;
    display:block;
}

    .menu-item:hover,
    .menu-item.active {
        background: #1e293b;
        color: white;
    }

/* Main */

.main-content {
    margin-right: 260px;
    padding: 24px;
    transition: .3s;
}

.topbar {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 24px;
}

.dashboard-title {
    font-size: 30px;
    font-weight: bold;
}

.subtitle {
    color: #94a3b8;
    margin-top: 6px;
}

/* Cards */

.stat-card {
    background: linear-gradient(145deg, #1e293b, #111827);
    border: 1px solid #1f2937;
    border-radius: 24px;
    padding: 22px;
    height: 100%;
    transition: .3s;
}

    .stat-card:hover {
        transform: translateY(-4px);
        border-color: #38bdf8;
    }

.stat-title {
    color: #94a3b8;
    font-size: 15px;
}

.stat-value {
    font-size: 34px;
    font-weight: bold;
    color: #38bdf8;
    margin-top: 10px;
}

/* Charts */

.chart-card {
    background: #111827;
    border-radius: 24px;
    border: 1px solid #1f2937;
    padding: 20px;
    margin-top: 24px;
    height: calc(100% - 24px);
}

.chart-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}

/* Table */

.table-card {
    background: #111827;
    border-radius: 24px;
    border: 1px solid #1f2937;
    padding: 20px;
    margin-top: 24px;
}

table {
    color: white !important;
    /*min-width: 700px;*/
}

thead {
    background: #1e293b;
}

/* Filter */

.form-select {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: white;
}

    .form-select:focus {
        box-shadow: none;
        border-color: #38bdf8;
    }

/* Badge */

.badge-custom {
    background: #0ea5e9;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
}

/* Mobile Top */

.mobile-topbar {
    display: none;
    background: #111827;
    padding: 16px 18px;
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.menu-btn {
    background: #1e293b;
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 20px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1035;
    display: none;
}

    .overlay.show {
        display: block;
    }

/* Responsive */

@media (max-width: 991px) {

    .mobile-topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar {
        transform: translateX(100%);
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .main-content {
        margin-right: 0;
        padding: 16px;
    }

    .dashboard-title {
        font-size: 24px;
    }

    .stat-value {
        font-size: 28px;
    }

    .chart-title {
        font-size: 18px;
    }

    .topbar {
        padding: 18px;
    }

    .table-card {
        overflow-x: auto;
    }
}

@media (max-width: 576px) {

    .dashboard-title {
        font-size: 21px;
    }

    .subtitle {
        font-size: 14px;
    }

    .stat-card {
        padding: 18px;
    }

    .chart-card {
        padding: 16px;
    }

    .badge-custom {
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
}
