/* =========================================================
   A&J NITECZKA - GODZINY PRACY (WERSJA 6.0 - TOP RIGHT)
   ========================================================= */

/* GŁÓWNY KONTENER - PRAWA STRONA, 30PX OD GÓRY */
.aj-hours-panel {
    position: fixed !important;
    top: 30px !important; /* 30px od górnej krawędzi */
    right: 0 !important;
    z-index: 999999 !important; /* Zawsze na wierzchu */
    
    background-color: #ffffff !important;
    padding: 12px 18px 12px 14px !important;
    
    /* Zaokrąglenie tylko z lewej strony */
    border-top-left-radius: 30px !important;
    border-bottom-left-radius: 30px !important;
    
    /* Cień rzucany lekko w dół i w lewo */
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.15) !important;
    
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    cursor: default !important;
    
    /* Lewa krawędź - kolor domyślny (nadpisywany klasami niżej) */
    border-left: 6px solid #ccc !important; 
    max-width: 250px !important;
}

/* EFEKT WYSUWANIA PRZY NAJECHANIU */
.aj-hours-panel:hover {
    transform: translateX(-10px) !important; /* Przesuwa się w lewo */
}

/* KROPKA STATUSU */
.aj-h-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: #ccc !important;
    flex-shrink: 0 !important;
}

/* KONTENER TEKSTU */
.aj-h-content {
    display: flex !important;
    flex-direction: column !important;
}

/* NAGŁÓWEK (OTWARTE / ZAMKNIĘTE) */
.aj-h-title {
    font-weight: 800 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
}

/* OPIS (GODZINY) */
.aj-h-desc {
    font-size: 11px !important;
    color: #666 !important;
    margin-top: 3px !important;
    white-space: nowrap !important;
}

/* --- KOLORY STATUSÓW --- */

/* 1. ZIELONY (Czynne) */
.aj-green { border-left-color: #27ae60 !important; }
.aj-green .aj-h-dot { background-color: #27ae60 !important; animation: aj-pulse-green 2s infinite !important; }
.aj-green .aj-h-title { color: #27ae60 !important; }

/* 2. POMARAŃCZOWY (Wkrótce Zamknięcie) */
.aj-orange { border-left-color: #f39c12 !important; }
.aj-orange .aj-h-dot { background-color: #f39c12 !important; animation: aj-pulse-orange 1.5s infinite !important; }
.aj-orange .aj-h-title { color: #f39c12 !important; }

/* 3. CZERWONY (Zamknięte / Święto / Urlop) */
.aj-red { border-left-color: #c0392b !important; }
.aj-red .aj-h-dot { background-color: #c0392b !important; }
.aj-red .aj-h-title { color: #c0392b !important; }

/* --- ANIMACJE PULSOWANIA --- */
@keyframes aj-pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(39, 174, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

@keyframes aj-pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

/* --- RESPANSYWNOŚĆ (MOBILE) --- */
@media (max-width: 768px) {
    .aj-hours-panel {
        /* Na telefonie przesuwamy trochę niżej, żeby nie zasłaniać menu strony */
        top: 80px !important; 
        right: 0 !important;
        border-radius: 10px 0 0 10px !important;
    }
}