@import '_content/HomeAutomation.UI/HomeAutomation.UI.qfiwmni4yi.bundle.scp.css';

/* /Components/Charts/TimeSeriesChart.razor.rz.scp.css */
/* Pastille de statut temps réel. La couleur et le halo dépendent de l'état (live/pause) : ils
   transitent par des custom properties posées en ligne, seule partie réellement dynamique. */
.chart-live-dot[b-ebrfpfv7yi] {
    width:         8px;
    height:        8px;
    border-radius: 50%;
    margin-left:   4px;
    background:    var(--chart-live-color);
    box-shadow:    var(--chart-live-glow, none);
}

/* Réserve la hauteur de la HaProgressBar (Size="Xs" → 4px) affichée pendant le chargement, pour
   que le graphique ne saute pas à chaque cycle de rafraîchissement. */
.chart-progress-slot[b-ebrfpfv7yi] {
    height: 4px;
}

.chart-body[b-ebrfpfv7yi] {
    padding: var(--space-2) var(--space-2) 0 var(--space-2);
}

/* Conteneur de référence des overlays ci-dessous, qui sont en position: absolute. */
.chart-container[b-ebrfpfv7yi] {
    position: relative;
}

.chart-overlay[b-ebrfpfv7yi] {
    position:        absolute;
    inset:           0;
    z-index:         1;
    display:         flex;
    align-items:     center;
    justify-content: center;
}

.chart-overlay--error[b-ebrfpfv7yi] {
    flex-direction: column;
    gap:            var(--space-2);
}

/* Le graphique reste monté et visible en filigrane pendant le chargement ou après une erreur :
   ApexCharts ne supporte pas d'être démonté puis remonté (voir CLAUDE.md, section ApexCharts). */
.chart-canvas--dimmed[b-ebrfpfv7yi] {
    opacity:        0.15;
    pointer-events: none;
}

/* Pas de règle ici pour le HaDivider ni la HaProgressBar : ce sont des composants enfants, dont
   l'élément racine porte LEUR scope. Leur taille se règle par leur paramètre `Size`. */
/* /Components/SunMoonComponent.razor.rz.scp.css */
/* Le conteneur EST la ligne d'horizon : son bord bas coupe la roue en deux.
   L'astre passé sous l'horizon est simplement masqué — on ne voit jamais les deux à la fois. */
.daynight[b-bydrdj8jh2] {
    width: 150px;
    height: 85px;
    position: relative;
    overflow: hidden;
}

.daynight-sky[b-bydrdj8jh2] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1.5s linear;
}

/* La roue déborde volontairement sous le conteneur : son centre est posé sur l'horizon
   (85px du haut), d'où le décalage de 85 − 75 = 10px pour une roue de 150px de haut. */
.daynight-wheel[b-bydrdj8jh2] {
    position: absolute;
    left: 0;
    top: 10px;
    width: 150px;
    height: 150px;
    transition: transform 0.8s ease;
}

/* transform-box: view-box — sans lui, transform-origin serait interprété par rapport à la boîte
   englobante du groupe et non aux coordonnées du viewBox, donc l'astre pivoterait de travers. */
.daynight-body[b-bydrdj8jh2] {
    transform-box: view-box;
    transition: transform 0.8s ease;
}

.daynight-sun-rays[b-bydrdj8jh2] {
    transform-box: view-box;
    transform-origin: 100px 48px;
    animation: sun-spin-b-bydrdj8jh2 20s linear infinite;
}

.daynight-sun-core[b-bydrdj8jh2] {
    animation: sun-pulse-b-bydrdj8jh2 3s ease-in-out infinite;
}

.daynight-moon[b-bydrdj8jh2] {
    animation: moon-float-b-bydrdj8jh2 4s ease-in-out infinite;
}

.daynight-star[b-bydrdj8jh2] {
    animation: star-twinkle-b-bydrdj8jh2 var(--star-twinkle-duration, 2s) ease-in-out infinite alternate;
}

/* ⚠️ Blazor réécrit les noms de @keyframes avec le suffixe de scope (`star-twinkle` devient
   `star-twinkle-b-xxxxx`). Un `style="animation: star-twinkle …"` inline dans le .razor ne passe
   PAS par ce pipeline : il garde le nom littéral, qui ne correspond alors à aucun keyframe et
   l'animation ne démarre jamais — sans erreur console, l'élément est juste immobile.
   D'où `.daynight-star` : le nom de l'animation reste dans le CSS scopé (donc réécrit
   correctement), et seule la durée, qui varie par étoile, transite en custom property. */
@keyframes sun-spin-b-bydrdj8jh2 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes sun-pulse-b-bydrdj8jh2 {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}

@keyframes moon-float-b-bydrdj8jh2 {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-4px); }
}

@keyframes star-twinkle-b-bydrdj8jh2 {
    0%   { opacity: 0.1; }
    100% { opacity: 0.9; }
}
/* /Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-y66vgvcp4f] {
    background: var(--mud-palette-error);
    color: var(--mud-palette-error-text);
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 3rem 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 99999;
}

#blazor-error-ui a[b-y66vgvcp4f] {
    color: var(--mud-palette-error-text);
    font-weight: 600;
    text-decoration: underline;
}

#blazor-error-ui .dismiss[b-y66vgvcp4f] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}
/* /Pages/Login.razor.rz.scp.css */
.login-page[b-lqsttanrbv] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-4);
}

.login-form[b-lqsttanrbv] {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.login-field[b-lqsttanrbv] {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    cursor: pointer;
}

.login-input[b-lqsttanrbv] {
    width: 100%;
    box-sizing: border-box;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-size: var(--font-size-md);
}

.login-input:focus[b-lqsttanrbv] {
    outline: none;
    border-color: var(--color-primary);
}
