body.admin-body {
    margin: 0;
    background: #f5f7fa;
    color: #2d3748;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: linear-gradient(180deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    padding: 24px 0;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}

.admin-brand {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    padding: 0 24px;
    margin-bottom: 28px;
}

.admin-brand-wrap {
    margin-bottom: 32px;
}

.brand-subtitle {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-section {
    margin-bottom: 20px;
    padding: 0 12px;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-title {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    margin: 0 6px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 500;
}

.nav-bottom {
    margin-top: auto;
}

.admin-main {
    margin-left: 240px;
    min-height: 100vh;
}

.admin-topbar {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.admin-topbar h1 {
    margin: 0;
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-name {
    color: #666;
    font-size: 14px;
}

.admin-content {
    padding: 28px 30px;
}

.admin-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-bottom: 20px;
}

.admin-card h3 {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2d5a87 0%, #1e3a5f 100%);
}

.stat-card.stat-primary::before {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
}

.stat-card.stat-success::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.stat-card.stat-warning::before {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.stat-card.stat-danger::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #2d3748;
}

.stat-sub {
    font-size: 12px;
    color: #10b981;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.province-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.province-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.province-name {
    width: 50px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e8ecf0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d5a87 0%, #1e3a5f 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.status-chart {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 160px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-bar {
    width: 12px;
    border-radius: 6px;
    transition: height 0.3s ease;
}

.status-bar.success {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.status-bar.warning {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.status-bar.danger {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.status-item span:first-of-type {
    width: 50px;
    font-size: 13px;
    color: #555;
}

.status-item .count {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
}

.data-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table a {
    color: #2d5a87;
    text-decoration: none;
}

.data-table a:hover {
    text-decoration: underline;
}

.data-table .btn {
    padding: 5px 12px;
    font-size: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(45, 90, 135, 0.3);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 135, 0.4);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-secondary {
    background: #f0f2f5;
    color: #666;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #e8ecf0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8ecf0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5a87;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #2d5a87;
    color: #fff;
    border-color: #2d5a87;
}

.pagination a.active {
    background: #2d5a87;
    color: #fff;
    border-color: #2d5a87;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.login-card h1 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
}

.login-card p {
    color: #888;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

.login-card .form-group:last-of-type {
    margin-bottom: 25px;
}

.login-card .btn {
    width: 100%;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

@media (max-width: 992px) {
    .admin-sidebar {
        width: 200px;
    }

    .admin-main {
        margin-left: 200px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 16px;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-topbar {
        padding: 0 16px;
    }

    .admin-content {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}