:root {
    --sidebar-width: 240px;
    --header-height: 64px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f6f8;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.sidebar-header small {
    opacity: 0.7;
}

.sidebar .nav {
    padding: 12px 0;
}

.sidebar .nav-item {
    margin: 4px 12px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

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

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

.sidebar .nav-link span:first-child {
    font-size: 1.1rem;
}

.header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 999;
    margin-left: var(--sidebar-width);
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height));
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .header {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-card p {
    color: #6c757d;
    margin-bottom: 0;
}

.stat-card.text-success h3 {
    color: #28a745;
}

.stat-card.text-danger h3 {
    color: #dc3545;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: none;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 24px;
    font-weight: 500;
}

.card-body {
    padding: 24px;
}

.table {
    margin-bottom: 0;
}

.table th {
    border-bottom: 2px solid #f0f0f0;
    font-weight: 500;
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
}

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-active {
    background-color: #d4edda;
    color: #155724;
}

.badge-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 24px;
}

.modal-body {
    padding: 24px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-control {
    border-radius: 6px;
    padding: 10px 12px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.dropdown-item {
    padding: 8px 16px;
}

.dropdown-item.text-danger {
    color: #dc3545;
}

.dropdown-item.text-danger:hover {
    background-color: #f8d7da;
}
