/* Role-based styling */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.role-admin {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.role-ceo {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.role-director {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.role-member {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.role-applicant {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.role-public {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: #374151;
    box-shadow: 0 2px 8px rgba(209, 213, 219, 0.3);
}

/* Admin Dashboard Styles */
.admin-dashboard {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.admin-header h1 {
    color: #dc2626;
    font-size: 2.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 1rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    padding: 1.5rem;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-success {
    background: #16a34a;
    color: white;
}

.btn-success:hover {
    background: #15803d;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-info {
    background: #0ea5e9;
    color: white;
}

.btn-info:hover {
    background: #0284c7;
}

.quick-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.discord-status {
    margin-top: 1rem;
}

.status-indicator {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
}

.status-indicator.online {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.status-indicator.offline {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.system-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.375rem;
}

.status-label {
    font-weight: 600;
    color: #374151;
}

.status-value {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-value.online {
    background: #16a34a;
    color: white;
}

.status-value.offline {
    background: #dc2626;
    color: white;
}

.admin-activity {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.admin-activity h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    border-left: 4px solid #2563eb;
}

.activity-time {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
}

.activity-description {
    color: #374151;
}

.activity-user {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.875rem;
}

.no-activity {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
}

/* Role-controlled sections */
.role-section {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.role-section.applicant {
    background: #f9fafb;
    border-left-color: #6b7280;
}

.role-section.member {
    background: #eff6ff;
    border-left-color: #2563eb;
}

.role-section.director {
    background: #f5f3ff;
    border-left-color: #7c3aed;
}

.role-section.ceo {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.role-section.admin {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.role-section h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.access-denied {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.access-denied i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}
