/* Variables CSS */
:root {
    --color-primary: #3B82F6;
    --color-accent: #60A5FA;
    --color-background: #F9FAFB;
    --color-surface: #FFFFFF;
    --color-text: #111827;
    --color-textSecondary: #6B7280;
    --color-border: #E5E7EB;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    transition: background-color 0.3s, color 0.3s;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 16rem;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Sidebar */
.sidebar {
    width: 16rem;
    background: #1F2937;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #374151;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.logo-text {
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #D1D5DB;
    text-decoration: none;
    transition: all 0.2s;
}

.menu-item:hover {
    background: #374151;
    color: white;
}

.menu-item.active {
    background: var(--color-primary);
    color: white;
}

.menu-icon {
    font-size: 1.25rem;
}

.menu-label {
    font-size: 0.875rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #374151;
}

.theme-toggle {
    width: 100%;
    padding: 0.75rem;
    background: #374151;
    border: 1px solid #4B5563;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.theme-toggle:hover {
    background: #4B5563;
    border-color: var(--color-primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #374151;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

.user-role {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.btn-logout {
    width: 100%;
    padding: 0.75rem;
    background: none;
    color: #D1D5DB;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #DC2626;
    border-color: #DC2626;
    color: white;
}

/* Header */
.header {
    background: var(--color-surface);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.theme-btn:hover {
    background: var(--color-background);
}

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.stat-card {
    background: var(--color-surface);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: var(--color-textSecondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text);
}

/* Tables */
.table-container {
    background: var(--color-surface);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--color-background);
}

.data-table th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-textSecondary);
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
}

.table-row:hover {
    background: var(--color-background);
}

/* Forms */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* Buttons */
.btn-primary {
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-background);
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--color-surface);
}

.btn-danger {
    background: #DC2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #B91C1C;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-green {
    background: #D1FAE5;
    color: #065F46;
}

.badge-blue {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-red {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-yellow {
    background: #FEF3C7;
    color: #92400E;
}

.badge-gray {
    background: #F3F4F6;
    color: #1F2937;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-container {
    background: var(--color-surface);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal-overlay.show .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-close {
    font-size: 2rem;
    color: var(--color-textSecondary);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--color-background);
    color: var(--color-text);
}

.modal-content {
    padding: 1.5rem;
}

/* Toast */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s;
}

.toast.show {
    transform: translateX(0);
}

/* Dropdown avec création */
.dropdown-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.dropdown-wrapper select {
    flex: 1;
}

.btn-create-option {
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-create-option:hover {
    opacity: 0.9;
}

/* Utilities */
.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 4rem;
    }
    
    .main-content {
        margin-left: 4rem;
    }
    
    .menu-label,
    .logo-text {
        display: none;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-textSecondary);
}
/* Ajoutez ces styles à votre fichier custom.css existant */

/* ============================================
   STYLES POUR LE LOGO MYSTIC
   ============================================ */

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #FF4444 0%, #D64B99 50%, #5B5FE5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation du logo au chargement */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    animation: logoFadeIn 0.5s ease-out;
}

/* ============================================
   STYLES POUR LES BOUTONS DE LA SIDEBAR
   ============================================ */

.theme-toggle,
.logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: #374151;
    border: 1px solid #4B5563;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #D1D5DB;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.theme-toggle:hover {
    background: #4B5563;
    color: white;
    border-color: #6B7280;
}

.logout-btn:hover {
    background: #DC2626;
    color: white;
    border-color: #EF4444;
}

/* ============================================
   RESPONSIVE - LOGO MOBILE
   ============================================ */

@media (max-width: 768px) {
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}
/* ============================================
   STYLES POUR LES ÉQUIPEMENTS
   À AJOUTER À public/css/custom.css
   ============================================ */

/* Badge utilisateur */
.user-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cartes statistiques */
.stat-card {
    background: var(--color-surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-textSecondary);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    opacity: 0.7;
}

.btn-icon:hover {
    opacity: 1;
    background: var(--color-background);
    transform: scale(1.1);
}

.btn-icon-danger:hover {
    background: #FEE2E2;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Timeline pour l'historique */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3B82F6, #D64B99, #5B5FE5);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.625rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-surface);
    box-shadow: 0 0 0 3px var(--color-background);
}

.timeline-content {
    padding-left: 1rem;
}

/* Badge de statut */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table responsive */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background: var(--color-background);
    border-bottom: 2px solid var(--color-border);
}

.data-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.data-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.data-table tbody tr {
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background: var(--color-background);
}

.data-table code {
    background: var(--color-background);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* Grid responsive */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* Spacing utilities */
.space-y-4 > * + * {
    margin-top: 1rem;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-secondary {
    color: var(--color-textSecondary);
}

.font-semibold {
    font-weight: 600;
}

/* Background utilities */
.bg-gray-50 {
    background-color: var(--color-background);
}

/* Padding utilities */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.pt-4 {
    padding-top: 1rem;
}

/* Margin utilities */
.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

/* Border radius */
.rounded {
    border-radius: 0.375rem;
}

/* Modal sizes */
.modal.large {
    max-width: 900px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline::before {
        left: 0.25rem;
    }

    .timeline-marker {
        left: -1.375rem;
    }
}

/* Animation pour les nouvelles lignes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.data-table tbody tr {
    animation: slideIn 0.3s ease-out;
}

/* Couleurs pour les changements dans l'historique */
.text-red-600 {
    color: #DC2626;
}

.text-green-600 {
    color: #059669;
}

/* Style pour les listes de ressources */
.resource-item {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.resource-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.resource-type {
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Amélioration des formulaires */
.form-input:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Scrollbar personnalisée */
.data-table::-webkit-scrollbar {
    height: 8px;
}

.data-table::-webkit-scrollbar-track {
    background: var(--color-background);
    border-radius: 4px;
}

.data-table::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.data-table::-webkit-scrollbar-thumb:hover {
    background: var(--color-textSecondary);
}
/* ============================================
   STYLES POUR LES WIDGETS DU DASHBOARD
   À AJOUTER À public/css/custom.css
   ============================================ */

/* Widget container */
.widget {
    transition: transform 0.2s, box-shadow 0.2s;
}

.widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.widget-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.widget-content {
    min-height: 100px;
}

/* Switch toggle pour paramètres widgets */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #FF4444 0%, #D64B99 50%, #5B5FE5 100%);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Responsive widgets */
@media (max-width: 1200px) {
    #widgetsContainer {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    #widgetsContainer {
        grid-template-columns: 1fr !important;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Animation d'apparition des widgets */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget {
    animation: fadeInUp 0.4s ease-out;
}

/* Style pour liens RSS */
.widget-content a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s;
}

.widget-content a:hover {
    background: var(--color-background);
    transform: translateX(4px);
}

/* Badge météo */
.weather-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--color-background);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Calendrier */
.calendar-day {
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: var(--color-background);
    cursor: pointer;
}

.calendar-day.today {
    background: var(--color-primary);
    color: white;
    font-weight: bold;
}

/* Widget vide */
.widget-empty {
    padding: 2rem;
    text-align: center;
    color: var(--color-textSecondary);
}

/* Skeleton loader pour widgets */
.widget-skeleton {
    background: linear-gradient(
        90deg,
        var(--color-background) 25%,
        var(--color-surface) 50%,
        var(--color-background) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
    height: 100px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Widget error state */
.widget-error {
    padding: 1rem;
    background: #FEE2E2;
    color: #DC2626;
    border-radius: 0.5rem;
    text-align: center;
}

/* Widget refresh button */
.widget-refresh {
    opacity: 0;
    transition: opacity 0.2s;
}

.widget:hover .widget-refresh {
    opacity: 1;
}

/* Dark mode adjustments */
[data-theme="dark"] .switch .slider {
    background-color: #4B5563;
}

[data-theme="dark"] .weather-badge {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .calendar-day:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Widget info tooltip */
.widget-tooltip {
    position: relative;
    display: inline-block;
}

.widget-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: #1F2937;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 0.5rem;
}

.widget-tooltip:hover::after {
    opacity: 1;
}

/* Stats animations */
.stat-value {
    animation: countUp 0.5s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

