.admin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.access-denied {
    text-align: center;
    padding: 3rem;
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.access-denied h2 {
    color: var(--error);
    margin-bottom: 1rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reports-list,
.bans-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.report-card,
.ban-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.report-card:hover,
.ban-card:hover {
    box-shadow: 0 4px 12px var(--shadow-color, rgba(0, 0, 0, 0.1));
}

.report-header,
.ban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.report-id,
.ban-id {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.report-date,
.ban-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.report-content,
.ban-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.report-section,
.ban-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.report-section strong,
.ban-section strong {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-link,
.talk-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.profile-link:hover,
.talk-link:hover {
    text-decoration: underline;
}

.report-reason,
.ban-reason {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.report-actions,
.ban-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-ban {
    padding: 0.75rem 1.5rem;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-ban:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-ignore {
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-ignore:hover {
    background: #475569;
    transform: translateY(-1px);
}

.btn-unban {
    padding: 0.75rem 1.5rem;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-unban:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s;
}

.modal-content {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px var(--shadow-color, rgba(0, 0, 0, 0.3));
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ban-reason-input,
.ban-expiry-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.ban-reason-input:focus,
.ban-expiry-input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

@media (max-width: 768px) {
    .admin-tabs {
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 0.75rem 1.5rem;
        white-space: nowrap;
    }
    
    .report-actions,
    .ban-actions {
        flex-direction: column;
    }
    
    .btn-ban,
    .btn-ignore,
    .btn-unban {
        width: 100%;
    }
}
