/* ========== ADMIN MODULE DARK MODE STYLES ========== */
/* Questo file estende i colori e gli stili del dashboard a tutto il modulo admin */

/* Dark Mode - Hero Header */
html.dark-mode .admin-hero-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* Dark Mode - Card Styling */
html.dark-mode .admin-card {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #e0e0e0 !important;
}

html.dark-mode .admin-card:hover {
    background-color: #333 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Dark Mode - Card Titles */
html.dark-mode .admin-card h2,
html.dark-mode .admin-card h3,
html.dark-mode .admin-card h4,
html.dark-mode .admin-card h5 {
    color: #e0e0e0 !important;
}

/* Dark Mode - Tables */
html.dark-mode .admin-table {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

html.dark-mode .admin-table thead {
    background-color: #3a3a3a !important;
    color: #e0e0e0 !important;
    border-bottom: 1px solid #444 !important;
}

html.dark-mode .admin-table tbody tr {
    border-bottom: 1px solid #444 !important;
}

html.dark-mode .admin-table tbody tr:hover {
    background-color: #3a3a3a !important;
}

html.dark-mode .admin-table td {
    color: #e0e0e0 !important;
}

/* Dark Mode - Buttons */
html.dark-mode .admin-btn-primary {
    background-color: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

html.dark-mode .admin-btn-primary:hover {
    background-color: #764ba2 !important;
    border-color: #764ba2 !important;
}

html.dark-mode .admin-btn-secondary {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

html.dark-mode .admin-btn-secondary:hover {
    background-color: #555 !important;
    border-color: #666 !important;
}

/* Dark Mode - Forms */
html.dark-mode .admin-form-control,
html.dark-mode .admin-select {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}

html.dark-mode .admin-form-control:focus,
html.dark-mode .admin-select:focus {
    background-color: #3a3a3a !important;
    color: #e0e0e0 !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

/* Dark Mode - Labels */
html.dark-mode .admin-label {
    color: #e0e0e0 !important;
}

/* Dark Mode - Section Box */
html.dark-mode .section-box {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #e0e0e0 !important;
}

/* Dark Mode - Alert Boxes */
html.dark-mode .admin-alert {
    background-color: #3a3a3a !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}

html.dark-mode .admin-alert-success {
    background-color: rgba(76, 175, 80, 0.1) !important;
    color: #7cb342 !important;
    border-color: #7cb342 !important;
}

html.dark-mode .admin-alert-danger {
    background-color: rgba(244, 67, 54, 0.1) !important;
    color: #ef5350 !important;
    border-color: #ef5350 !important;
}

html.dark-mode .admin-alert-warning {
    background-color: rgba(255, 152, 0, 0.1) !important;
    color: #ffb74d !important;
    border-color: #ffb74d !important;
}

/* Dark Mode - Grid Stats Cards */
html.dark-mode .stat-card {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    border-top: 4px solid;
    color: #e0e0e0 !important;
}

html.dark-mode .stat-card:hover {
    background-color: #333 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

html.dark-mode .stat-card .stat-title {
    color: #b0b0b0 !important;
}

html.dark-mode .stat-card .stat-number {
    color: #e0e0e0 !important;
}

/* Dark Mode - Badges */
html.dark-mode .admin-badge {
    background-color: #444 !important;
    color: #e0e0e0 !important;
}

html.dark-mode .admin-badge-success {
    background-color: rgba(76, 175, 80, 0.2) !important;
    color: #7cb342 !important;
}

html.dark-mode .admin-badge-danger {
    background-color: rgba(244, 67, 54, 0.2) !important;
    color: #ef5350 !important;
}

/* Dark Mode - Links */
html.dark-mode .admin-link {
    color: #667eea !important;
}

html.dark-mode .admin-link:hover {
    color: #764ba2 !important;
}

/* Dark Mode - Modal */
html.dark-mode .modal-content {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

html.dark-mode .modal-header {
    background-color: #3a3a3a !important;
    border-bottom-color: #444 !important;
}

html.dark-mode .modal-header .btn-close {
    filter: invert(1) !important;
}

html.dark-mode .form-check-input {
    background-color: #3a3a3a !important;
    border-color: #444 !important;
}

html.dark-mode .form-check-input:checked {
    background-color: #667eea !important;
    border-color: #667eea !important;
}
