* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #0f172a;
    color: #fff;
    padding: 24px 16px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 24px;
}

.menu a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.menu a:hover {
    background: #1e293b;
    color: #fff;
}

.content {
    flex: 1;
    padding: 24px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.text-danger {
    color: #dc2626;
    display: block;
    margin-top: 6px;
}

.btn-secondary {
    background: #64748b;
}

.btn-danger {
    background: #dc2626;
}

.btn-sm {
    padding: 8px 10px;
    font-size: 13px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 900px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.custom-pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.custom-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn,
.pagination-page,
.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #1e3a5f;
    background: #0f172a;
    color: #cbd5e1;
    transition: 0.2s ease;
}

.pagination-btn:hover,
.pagination-page:hover {
    background: #1e293b;
    color: #fff;
}

.pagination-page.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    font-weight: 600;
}

.pagination-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagination-dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 4px;
}

.custom-pagination-info {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.menu-section {
    margin-top: 15px;
    font-size: 12px;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 8px 0;
    font-weight: bold;
}

.badge {
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

.badge-danger {
    background: #ef4444;
    color: white;
}

.card h2 {
    font-size: 24px;
    font-weight: bold;
}

.card small {
    color: #6b7280;
}

.table tbody tr:hover {
    background: #fafafa;
}

.table td, .table th {
    vertical-align: middle;
}

.card-header h4 {
    font-weight: 600;
}

.card {
    border-radius: 12px;
}

.card-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control,
.form-select {
    min-height: 42px;
    border-radius: 8px;
}

textarea.form-control {
    min-height: 110px;
}

.btn {
    border-radius: 8px;
}