/* ==========================================================
   /ui/css/layout/ljh-right.css
   LJH – Right Column (Sidebar Container)
   ----------------------------------------------------------
   Ansvar:
   - Högerkolumnens wrapper och spacing
   - Modul-wrapper (neutral, ingen stil)
   - Header, title och content-typografi
   - Force glass på alla sidokort
   - Banner stack
   - Notice-varianter (type-notice, notice-response)
   - Messages-knapp (neon puls / viloläge)
   - Allan – "Who's Out"-kortet
   ----------------------------------------------------------
   CONTAINER ONLY – Ingen bakgrund på wrapper
   Innehållet styrs av components, inte sidebaren
   Version: 2.3
   Används av: admin_apps.php, office_apps.php, index.php,
               admin_site.php, office_site.php
   Laddas via: head_loader.php
   ----------------------------------------------------------
   V2.3 (2026-09-26):
   - FORCE GLASS gäller nu även .ljh-working-right (startsidornas
     sidopanel i admin_site.php/office_site.php). Tidigare gällde
     reglerna bara inuti .ljh-right, så startsidornas kort saknade
     glaseffekt helt. Wrappern (.ljh-right) rörs inte — bara korten.
   - Ny sektion: Allan "Who's Out"-kortet
     (components/allan/allan_absence_card.php).
========================================================== */


/* ==========================================================
   WRAPPER – Högerkolumn
========================================================== */

.ljh-right {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
    overflow-x: hidden;
    padding: 22px 18px;
    background: none;
    border-radius: 0;
}


/* ==========================================================
   MODUL-WRAPPER – Spacing only, ingen stil
========================================================== */

.ljh-right-module,
.admin-side-card {
    display: block;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
}


/* ==========================================================
   TYPOGRAFI – Header och content
========================================================== */

.ljh-right-header  { margin-bottom: 8px; }

.ljh-right-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.ljh-right-content { font-size: 0.85rem; line-height: 1.45; }
.ljh-right-muted   { opacity: 0.55; font-style: italic; }


/* ==========================================================
   FORCE GLASS – Alla sidokort i högerkolumnen
   (.ljh-right = apparnas sidopanel,
    .ljh-working-right = startsidornas sidopanel)
========================================================== */

.ljh-right .ljh-right-module,
.ljh-right .admin-side-card,
.ljh-right .start-side-card,
.ljh-right .ljh-side-card,
.ljh-right .ljh-banner-card,
.ljh-working-right .admin-side-card,
.ljh-working-right .ljh-banner-card {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.16),
        rgba(255,255,255,0.07)
    ) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        0 16px 36px rgba(0,0,0,0.45);
    color: #e5e7eb;
}

/* Luft mellan korten på startsidorna (wrappern där har ingen gap) */
.ljh-working-right .admin-side-card + .admin-side-card {
    margin-top: 18px;
}


/* ==========================================================
   BANNER STACK
========================================================== */

.ljh-right-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* ==========================================================
   NOTICE-VARIANTER
========================================================== */

.type-notice { border-color: rgba(255,120,120,0.4); }

.notice-response {
    border-color: rgba(255,120,120,0.8);
    box-shadow:
        0 0 8px rgba(255,120,120,0.5),
        inset 0 1px 0 rgba(255,255,255,0.28);
    animation: ljhNoticePulse 2.6s ease-in-out infinite;
}

@keyframes ljhNoticePulse {
    0%   { box-shadow: 0 0 6px  rgba(255,120,120,0.35), inset 0 1px 0 rgba(255,255,255,0.28); }
    50%  { box-shadow: 0 0 14px rgba(255,120,120,0.85), inset 0 1px 0 rgba(255,255,255,0.28); }
    100% { box-shadow: 0 0 6px  rgba(255,120,120,0.35), inset 0 1px 0 rgba(255,255,255,0.28); }
}


/* ==========================================================
   MESSAGES – Notis-knapp
   ----------------------------------------------------------
   .admin-msg-btn          → Viloläge (mörk grå-blå), inga nya
   .admin-msg-btn--pulse   → Neonblå puls, nytt meddelande väntar
========================================================== */

.admin-msg-btn {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #94a3b8;
    background: rgba(71,85,105,0.35);
    border: 1px solid rgba(100,116,139,0.35);
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.admin-msg-btn--pulse {
    color: #e0f2fe;
    background: rgba(56,189,248,0.25);
    border: 1px solid rgba(56,189,248,0.6);
    animation: ljhMessagePulse 1.8s ease-in-out infinite;
}

@keyframes ljhMessagePulse {
    0%   { box-shadow: 0 0 6px  rgba(56,189,248,0.4), inset 0 1px 0 rgba(255,255,255,0.2); }
    50%  { box-shadow: 0 0 18px rgba(56,189,248,0.95), inset 0 1px 0 rgba(255,255,255,0.2); }
    100% { box-shadow: 0 0 6px  rgba(56,189,248,0.4), inset 0 1px 0 rgba(255,255,255,0.2); }
}


/* ==========================================================
   ALLAN – "WHO'S OUT"
   ----------------------------------------------------------
   components/allan/allan_absence_card.php
   Namn i fetstil, datum dämpat under, tunn avdelare mellan
   personerna. Ingen punkt framför namnen.
========================================================== */

.allan-absence-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.allan-absence-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.allan-absence-item:first-child {
    border-top: none;
    padding-top: 0;
}

.allan-absence-item:last-child {
    padding-bottom: 0;
}

.allan-absence-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}

.allan-absence-when {
    font-size: 0.8rem;
    color: #94a3b8;
}



