/* Page Specific Variables */
:root {
    --teal: #0d9488;
    --purple: #7c3aed;
}

.main-content {
    flex: 1;
    padding: var(--space-4) 0;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    padding: var(--space-4) var(--space-4);
    border-radius: var(--radius-lg);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.page-header h1 {
    font-size: var(--text-xl);
    color: #ffffff !important;
    margin-bottom: var(--space-1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header h1 svg {
    fill: #ffffff;
    width: 28px;
    height: 28px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: var(--text-sm);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Alert Boxes */
.alert {
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-sm);
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.alert-warning {
    background: var(--warning-light);
    border: 2px solid var(--warning);
    color: #92400e;
}

.alert-success {
    background: var(--success-light);
    border: 2px solid var(--success);
    color: #065f46;
}

.alert strong {
    font-weight: var(--font-bold);
}

/* Actions Section */
.actions-section {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.actions-section .btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
}

.actions-section .btn svg {
    width: 16px;
    height: 16px;
}

.btn-success {
    background: var(--bg-gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error) 0%, #f87171 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
}

/* Category Card */
.category-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--neutral-100);
    transition: all var(--transition-base);
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.category-header {
    padding: var(--space-3);
    color: white;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.category-header.leadership {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-400) 100%);
}

.category-header.quality {
    background: linear-gradient(135deg, var(--purple) 0%, #8b5cf6 100%);
}

.category-header.teacher {
    background: linear-gradient(135deg, var(--teal) 0%, #14b8a6 100%);
}

.category-header.employee {
    background: var(--bg-gradient-primary);
}

.category-header.admin {
    background: linear-gradient(135deg, var(--error) 0%, #f87171 100%);
}

.category-header.gifted {
    background: linear-gradient(135deg, var(--accent-500) 0%, #fbbf24 100%);
}

.category-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.category-header h3 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: white;
}

.category-body {
    padding: var(--space-3);
}

/* Account Item */
.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2);
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    transition: background var(--transition-fast);
}

.account-item:last-child {
    margin-bottom: 0;
}

.account-item:hover {
    background: var(--neutral-100);
}

.account-info {
    flex: 1;
}

.account-name {
    font-weight: var(--font-semibold);
    color: var(--primary-800);
    margin-bottom: 2px;
    font-size: var(--text-xs);
}

.account-credentials {
    font-size: 11px;
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.account-credentials code {
    background: var(--neutral-200);
    padding: 2px var(--space-1);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 10px;
}

/* Account Badge */
.account-badge {
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.badge-leadership {
    background: var(--warning-light);
    color: #92400e;
}

.badge-quality {
    background: #f3e8ff;
    color: var(--purple);
}

.badge-teacher {
    background: var(--success-light);
    color: #065f46;
}

.badge-employee {
    background: var(--info-light);
    color: #1e40af;
}

.badge-admin {
    background: var(--error-light);
    color: var(--error);
}

.badge-gifted {
    background: var(--warning-light);
    color: #92400e;
}

.badge-nafis {
    background: var(--warning-light);
    color: #92400e;
}

.badge-qudurat {
    background: var(--info-light);
    color: #1e40af;
}

.badge-tahsili {
    background: var(--error-light);
    color: var(--error);
}

/* Note Box */
.note-box {
    background: var(--info-light);
    border: 1px solid var(--info);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    margin-top: var(--space-4);
}

.note-box h4 {
    color: #1e40af;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
}

.note-box p {
    color: var(--info);
    font-size: var(--text-xs);
    margin-bottom: var(--space-1);
}

.note-box p:last-child {
    margin-bottom: 0;
}

.note-box code {
    background: white;
    padding: 2px var(--space-1);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}

/* Info Card in Category */
.info-card {
    background: var(--info-light);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    margin-top: var(--space-2);
    font-size: 11px;
    color: #1e40af;
}

.info-card strong {
    display: block;
    margin-bottom: 2px;
}

.info-card a {
    display: block;
    margin-top: var(--space-1);
    color: #1e40af;
    font-weight: var(--font-semibold);
}

/* Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .actions-section {
        flex-direction: column;
    }

    .actions-section .btn {
        width: 100%;
        justify-content: center;
    }

    .page-header h1 {
        font-size: var(--text-lg);
    }

    .account-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }

    .account-badge {
        align-self: flex-start;
    }
}
