/* ECOLUX Dashboard Colors - Palette officielle */
:root {
    --ecolux-primary: #1e1810;
    --ecolux-secondary: #e6c252;
    --ecolux-primary-light: rgba(30, 24, 16, 0.1);
    --ecolux-secondary-light: rgba(230, 194, 82, 0.1);
    --ecolux-primary-dark: #161310;
    --ecolux-secondary-dark: #d4b048;
}

/* Classes principales ECOLUX */
.ecolux-primary {
    background-color: var(--ecolux-primary) !important;
    color: var(--ecolux-secondary) !important;
}

.ecolux-secondary {
    background-color: var(--ecolux-secondary) !important;
    color: var(--ecolux-primary) !important;
}

.ecolux-primary-light {
    background-color: var(--ecolux-primary-light) !important;
    border-left: 4px solid var(--ecolux-primary);
}

.ecolux-secondary-light {
    background-color: var(--ecolux-secondary-light) !important;
    border-left: 4px solid var(--ecolux-secondary);
}

/* Classes de texte */
.has-text-ecolux-primary {
    color: var(--ecolux-primary) !important;
}

.has-text-ecolux-secondary {
    color: var(--ecolux-secondary) !important;
}

/* Boutons ECOLUX */
.button.is-ecolux-primary {
    background-color: var(--ecolux-primary);
    color: var(--ecolux-secondary);
    border: 1px solid var(--ecolux-primary);
    transition: all 0.3s ease;
}

.button.is-ecolux-primary:hover {
    background-color: var(--ecolux-primary-dark);
    color: var(--ecolux-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 24, 16, 0.3);
}

.button.is-ecolux-secondary {
    background-color: var(--ecolux-secondary);
    color: var(--ecolux-primary);
    border: 1px solid var(--ecolux-secondary);
    transition: all 0.3s ease;
}

.button.is-ecolux-secondary:hover {
    background-color: var(--ecolux-secondary-dark);
    color: var(--ecolux-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 194, 82, 0.3);
}

.button.is-ecolux-primary.is-light {
    background-color: var(--ecolux-primary-light);
    color: var(--ecolux-primary);
    border: 1px solid var(--ecolux-primary-light);
}

.button.is-ecolux-secondary.is-light {
    background-color: var(--ecolux-secondary-light);
    color: var(--ecolux-primary);
    border: 1px solid var(--ecolux-secondary-light);
}

/* Cartes ECOLUX */
.card.ecolux-card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(30, 24, 16, 0.1);
    border-top: 3px solid var(--ecolux-secondary);
    transition: all 0.3s ease;
}

.card.ecolux-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 24, 16, 0.15);
}

/* Tags ECOLUX */
.tag.is-ecolux-primary {
    background-color: var(--ecolux-primary);
    color: var(--ecolux-secondary);
}

.tag.is-ecolux-secondary {
    background-color: var(--ecolux-secondary);
    color: var(--ecolux-primary);
}

/* Notifications ECOLUX */
.notification.is-ecolux-primary {
    background-color: var(--ecolux-primary-light);
    color: var(--ecolux-primary);
    border-left: 4px solid var(--ecolux-primary);
}

.notification.is-ecolux-secondary {
    background-color: var(--ecolux-secondary-light);
    color: var(--ecolux-primary);
    border-left: 4px solid var(--ecolux-secondary);
}

/* Progress bars ECOLUX */
.progress.is-ecolux-primary::-webkit-progress-value {
    background-color: var(--ecolux-primary);
}

.progress.is-ecolux-secondary::-webkit-progress-value {
    background-color: var(--ecolux-secondary);
}

/* Liens ECOLUX */
a.ecolux-link {
    color: var(--ecolux-primary);
    transition: color 0.3s ease;
}

a.ecolux-link:hover {
    color: var(--ecolux-secondary);
}

/* Hero section ECOLUX */
.hero.is-ecolux-primary {
    background: linear-gradient(135deg, var(--ecolux-primary) 0%, var(--ecolux-primary-dark) 100%);
    color: var(--ecolux-secondary);
}

.hero.is-ecolux-secondary {
    background: linear-gradient(135deg, var(--ecolux-secondary) 0%, var(--ecolux-secondary-dark) 100%);
    color: var(--ecolux-primary);
}

/* Tables ECOLUX */
.table.is-ecolux thead {
    background-color: var(--ecolux-secondary-light);
}

.table.is-ecolux thead th {
    color: var(--ecolux-primary);
    border-bottom: 2px solid var(--ecolux-secondary);
}

.table.is-ecolux tbody tr:hover {
    background-color: var(--ecolux-primary-light);
}

/* Navigation ECOLUX */
.navbar.is-ecolux-primary {
    background-color: var(--ecolux-primary);
}

.navbar.is-ecolux-primary .navbar-item {
    color: var(--ecolux-secondary);
}

.navbar.is-ecolux-primary .navbar-item:hover {
    background-color: var(--ecolux-primary-dark);
    color: var(--ecolux-secondary);
}

/* Sidebar ECOLUX */
.menu-list a.is-ecolux-active {
    background-color: var(--ecolux-primary);
    color: var(--ecolux-secondary);
}

.menu-list a:hover {
    background-color: var(--ecolux-primary-light);
    color: var(--ecolux-primary);
}

/* Pagination ECOLUX */
.pagination-link.is-current.ecolux-primary {
    background-color: var(--ecolux-primary);
    border-color: var(--ecolux-primary);
    color: var(--ecolux-secondary);
}

.pagination-link:hover {
    border-color: var(--ecolux-primary);
    color: var(--ecolux-primary);
}

/* Modals ECOLUX */
.modal-card.ecolux-card {
    border-radius: 12px;
    overflow: hidden;
}

.modal-card-head.ecolux-primary {
    background-color: var(--ecolux-primary);
}

.modal-card-head.ecolux-secondary {
    background-color: var(--ecolux-secondary);
}

/* Input fields ECOLUX focus */
.input:focus,
.textarea:focus,
.select select:focus {
    border-color: var(--ecolux-primary);
    box-shadow: 0 0 0 0.125em rgba(30, 24, 16, 0.25);
}

/* Custom scrollbar ECOLUX */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ecolux-primary-light);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--ecolux-primary-dark);
}

/* Animations ECOLUX */
@keyframes ecolux-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 194, 82, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 194, 82, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 194, 82, 0);
    }
}

.ecolux-pulse {
    animation: ecolux-pulse 2s infinite;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .ecolux-card {
        margin: 0.75rem;
    }
    
    .button.is-ecolux-primary,
    .button.is-ecolux-secondary {
        font-size: 0.875rem;
    }
}

/* Print styles */
@media print {
    .ecolux-primary {
        background-color: transparent !important;
        color: #000 !important;
        border: 1px solid #000;
    }
    
    .ecolux-secondary {
        background-color: transparent !important;
        color: #000 !important;
        border: 1px solid #000;
    }
}
