/* Admin Page Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.user-table, .event-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th, .event-table th {
    text-align: left;
    padding: 0.75rem;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
}

.user-table td, .event-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.role-badge.admin {
    background: #fee;
    color: #dc2626;
}

.role-badge.event-owner {
    background: #eff6ff;
    color: #2563eb;
}

.role-badge.event-user {
    background: #f0fdf4;
    color: #16a34a;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Role Editor Modal */
.role-editor {
    margin-top: 1rem;
}

.role-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.role-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.role-checkbox label {
    cursor: pointer;
    font-weight: 500;
}
