/* =================================================================
   ADMIN VISUAL INDICATORS
   Consistent styling for admin-only features and pages
   ================================================================= */

/* Admin Badge Styling - Navigation & UI Elements */
.badge-admin {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
    border: 1px solid rgba(252, 165, 165, 0.5) !important;
    animation: admin-pulse 2s infinite !important;
}

/* Admin Navigation Item Styling */
.nav-item-admin,
.dropdown-item-admin {
    position: relative !important;
}

.nav-item-admin::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item-admin:hover::before {
    opacity: 1;
}

/* Admin Page Header Styling */
.admin-page-header {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(153, 27, 27, 0.05) 100%);
    border-left: 4px solid #dc2626;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.admin-page-header h1,
.admin-page-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-page-header .admin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Admin Card Styling */
.admin-card {
    border: 2px solid rgba(220, 38, 38, 0.3) !important;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(153, 27, 27, 0.02) 100%) !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.1) !important;
}

.admin-card .card-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    color: white !important;
    border-bottom: none !important;
}

/* Admin Button Styling */
.btn-admin {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-admin:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4) !important;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d) !important;
}

.btn-admin:active {
    transform: translateY(0) !important;
}

/* Admin Alert/Notice Styling */
.alert-admin {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(153, 27, 27, 0.1)) !important;
    border-left: 4px solid #dc2626 !important;
    border-radius: 8px !important;
    color: #dc2626 !important;
}

.alert-admin .alert-heading {
    color: #991b1b !important;
    font-weight: 700 !important;
}

/* Admin Table Styling */
.table-admin {
    border: 2px solid rgba(220, 38, 38, 0.2) !important;
}

.table-admin thead {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: white !important;
}

.table-admin thead th {
    border-bottom: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

.table-admin tbody tr:hover {
    background: rgba(220, 38, 38, 0.05) !important;
}

/* Admin Status Indicators */
.admin-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #dc2626;
}

.admin-status-indicator::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
    animation: admin-pulse 2s infinite;
}

/* Animations */
@keyframes admin-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes admin-glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 16px rgba(220, 38, 38, 0.6);
    }
}

/* Lock Icon for Admin-Only Content */
.admin-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-radius: 4px;
    color: white;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* Admin Section Divider */
.admin-divider {
    height: 2px;
    background: linear-gradient(90deg, #dc2626, rgba(220, 38, 38, 0.1), #dc2626);
    margin: 2rem 0;
    border: none;
}

/* Admin Modal Styling */
.modal-admin .modal-header {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    border-bottom: none;
}

.modal-admin .modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Admin Toast/Notification */
.toast-admin {
    border-left: 4px solid #dc2626 !important;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(153, 27, 27, 0.95)) !important;
    color: white !important;
}

/* Admin Access Denied Page */
.admin-access-denied {
    text-align: center;
    padding: 4rem 2rem;
}

.admin-access-denied-icon {
    font-size: 5rem;
    color: #dc2626;
    margin-bottom: 1.5rem;
    animation: admin-glow 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .badge-admin {
        font-size: 0.65rem !important;
        padding: 3px 10px !important;
    }
    
    .admin-page-header {
        padding: 1rem !important;
    }
    
    .admin-page-header .admin-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.25rem !important;
    }
}

/* Print Styles - Hide admin indicators when printing */
@media print {
    .badge-admin,
    .admin-status-indicator,
    .admin-lock-icon,
    .admin-restricted-banner {
        display: none !important;
    }
}

/* Accessibility Enhancements */
.badge-admin:focus,
.btn-admin:focus {
    outline: 2px solid #dc2626 !important;
    outline-offset: 2px !important;
}

/* Dark Theme Optimization */
[data-bs-theme="dark"] .admin-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(153, 27, 27, 0.04) 100%) !important;
}

[data-bs-theme="dark"] .table-admin tbody tr:hover {
    background: rgba(220, 38, 38, 0.08) !important;
}
