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

:root {
    --primary-color: #2c5f7e;
    --secondary-color: #4a90a4;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Login Screen */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-box > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.login-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background: var(--secondary-color);
}

/* Dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.dashboard-header h1 {
    color: var(--primary-color);
}

.btn-logout {
    padding: 0.75rem 1.5rem;
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.btn-logout:hover {
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-pending {
    border-left-color: var(--warning-color);
}

.stat-pending .stat-number {
    color: var(--warning-color);
}

.stat-approved {
    border-left-color: var(--success-color);
}

.stat-approved .stat-number {
    color: var(--success-color);
}

.stat-rejected {
    border-left-color: var(--danger-color);
}

.stat-rejected .stat-number {
    color: var(--danger-color);
}

/* Filters */
.filters-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.filters-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.filters-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.btn-apply, .btn-clear {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-apply {
    background: var(--primary-color);
    color: var(--white);
}

.btn-clear {
    background: var(--text-light);
    color: var(--white);
}

.btn-apply:hover, .btn-clear:hover {
    opacity: 0.9;
}

/* Requests Table */
.requests-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.requests-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.requests-table-container {
    overflow-x: auto;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
}

.requests-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.requests-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.requests-table tr:hover {
    background: var(--bg-light);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.priority-low {
    background: #e7f3ff;
    color: #004085;
}

.priority-medium {
    background: #fff3cd;
    color: #856404;
}

.priority-high {
    background: #ffe5d9;
    color: #8b4513;
}

.priority-urgent {
    background: #f8d7da;
    color: #721c24;
}

.btn-view {
    padding: 0.5rem 1rem;
    background: var(--info-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-view:hover {
    opacity: 0.9;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.modal-large {
    max-width: 800px;
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-dark);
}

#detailContent {
    margin: 1.5rem 0;
}

.detail-row {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: var(--text-light);
}

.modal-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.modal-actions h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.status-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

#adminNotes {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.btn-save, .btn-delete {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-save {
    background: var(--success-color);
    color: var(--white);
}

.btn-delete {
    background: var(--danger-color);
    color: var(--white);
}

.btn-save:hover, .btn-delete:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }

    .filters-group {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

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

    .requests-table th,
    .requests-table td {
        padding: 0.5rem;
    }

    .button-group {
        flex-direction: column;
    }
}

/* Feedback Section */
.feedback-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.feedback-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feedback-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge-type {
    background: #e7f3ff;
    color: #0066cc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}
