.sidebar {
    width: 240px;
    min-height: 100vh;
    transition: all 0.3s;
    flex-shrink: 0;
}

.sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.sidebar .nav-link {
    padding: 8px 16px;
    border-radius: 6px;
    margin: 2px 0;
    font-size: 14px;
    transition: background-color 0.2s;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.15);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 8px;
}

.nav-section {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.stat-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

.badge-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.login-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.login-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    padding: 30px;
    text-align: center;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4192 100%);
}

.page-header {
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
    .sidebar {
        position: fixed;
        z-index: 1050;
        width: 240px;
        top: 0;
        left: -240px;
        transition: left 0.3s;
    }

    .sidebar.show {
        left: 0;
    }

    .sidebar.collapsed {
        left: -240px;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }

    .sidebar-overlay.show {
        display: block;
    }

    #wrapper > .flex-grow-1 {
        width: 100% !important;
    }

    main.p-4 {
        padding: 0.75rem !important;
    }

    .page-header h2 {
        font-size: 18px;
    }

    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-card .card-body {
        padding: 0.75rem;
    }

    .stat-card h3 {
        font-size: 1.2rem;
    }

    .table {
        font-size: 0.8rem;
    }

    .table th, .table td {
        padding: 0.4rem;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .login-card {
        margin: 1rem;
    }

    .login-card .card-header {
        padding: 20px;
    }

    .navbar .navbar-text {
        font-size: 0.85rem;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-control, .form-select {
        font-size: 0.85rem;
    }

    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        z-index: 1050;
        width: 240px;
        top: 0;
        left: -240px;
        transition: left 0.3s;
    }

    .sidebar.show {
        left: 0;
    }

    .sidebar.collapsed {
        left: -240px;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }

    .sidebar-overlay.show {
        display: block;
    }

    #wrapper > .flex-grow-1 {
        width: 100% !important;
    }

    main.p-4 {
        padding: 1rem !important;
    }

    .page-header h2 {
        font-size: 20px;
    }

    .table {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar {
        width: 200px;
    }

    .sidebar .nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }

    main.p-4 {
        padding: 1.5rem !important;
    }

    .stat-card .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
