/* ============================================================
   FILE ACCESS REQUESTS — ADMIN PAGE
   ============================================================ */

.access-req-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-m);
    margin-bottom: var(--space-l);
}

.access-req-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-m);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
}

.access-req-stat-number {
    font-size: var(--step-2);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.access-req-stat-label {
    font-size: var(--step--1);
    color: var(--text-secondary);
    margin-top: var(--space-3xs);
}

/* Tab navigation */
.access-req-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-l);
    border-bottom: 2px solid var(--border-primary);
}

.access-req-tab {
    padding: var(--space-2xs) var(--space-s);
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.access-req-tab:hover {
    color: var(--text-primary);
}

.access-req-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    font-weight: 600;
}

/* Empty state */
.access-req-empty {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-secondary);
}

/* Request list */
.access-req-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.access-req-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    padding: var(--space-m);
    transition: box-shadow 0.2s;
}

.access-req-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.access-req-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-m);
    margin-bottom: var(--space-s);
}

.access-req-card__thesis h3 {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-3xs) 0;
    line-height: 1.3;
}

.access-req-card__authors {
    font-size: var(--step--1);
    color: var(--text-secondary);
    margin: 0;
}

.access-req-card__meta {
    flex-shrink: 0;
}

.access-req-badge {
    display: inline-block;
    padding: var(--space-3xs) var(--space-2xs);
    border-radius: 12px;
    font-size: var(--step--2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.access-req-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.access-req-badge--approved {
    background: #d1fae5;
    color: #065f46;
}

.access-req-badge--rejected {
    background: #fee2e2;
    color: #991b1b;
}

.access-req-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.access-req-card__info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m);
    font-size: var(--step--1);
    color: var(--text-secondary);
}

.access-req-card__info strong {
    color: var(--text-primary);
    margin-right: var(--space-3xs);
}

.access-req-card__info a {
    color: var(--accent-primary);
    text-decoration: none;
}

.access-req-card__info a:hover {
    text-decoration: underline;
}

.access-req-card__justification,
.access-req-card__admin-notes {
    background: var(--bg-primary);
    padding: var(--space-s);
    border-radius: var(--radius);
    font-size: var(--step--1);
    line-height: 1.6;
}

.access-req-card__justification strong,
.access-req-card__admin-notes strong {
    display: block;
    margin-bottom: var(--space-3xs);
    color: var(--text-primary);
}

.access-req-card__justification p,
.access-req-card__admin-notes p {
    margin: 0;
}

.access-req-card__actions {
    display: flex;
    gap: var(--space-s);
    margin-top: var(--space-s);
}

.access-req-btn {
    /* deprecated alias for .btn; kept for backward-compat */
}

.access-req-btn--approve {
    /* deprecated alias for .btn--primary */
}

.access-req-btn--reject {
    /* deprecated alias for .btn--danger */
}

/* Pagination */
.access-req-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-m);
    margin-top: var(--space-l);
    padding: var(--space-s) 0;
}

.access-req-pagination__link {
    padding: var(--space-2xs) var(--space-s);
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.access-req-pagination__link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.access-req-pagination__info {
    font-size: var(--step--1);
    color: var(--text-secondary);
}

/* Dialog textarea/label enhancements */
.admin-dialog textarea {
    width: 100%;
    padding: var(--space-2xs);
    margin: var(--space-s) 0;
}

.admin-dialog label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-3xs);
}
