
/* ==========================================================
   /assets/ui/ljh-components.css
   LJH COMPONENTS – FINAL CLEAN V1.0
   ----------------------------------------------------------
   Ansvar:
   - Hero-sektioner
   - Stora glasblock
   - Panels / feature-blocks
   - Schema (dag-, vecka-, månadsceller)
   ----------------------------------------------------------
   INGA:
   - knappar (ljh-gadgets.css)
   - formulär (ljh-forms.css)
   - färgteman (ljh-base.css)
========================================================== */


/* ==========================================================
   1. HERO – GLOBAL SEKTIONSWRAPPER
========================================================== */

.ljh-hero {
    position: relative;
    padding: clamp(120px, 14vw, 180px) 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* ==========================================================
   2. HERO GLASS – STOR GLASYTA
========================================================== */

.ljh-hero-glass {
    position: relative;
    z-index: 2;

    padding:
        clamp(2.6rem, 4vw, 4.2rem)
        clamp(2.2rem, 4vw, 5rem)
        clamp(3.4rem, 5vw, 6.8rem);

    border-radius: 32px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.18),
        rgba(255,255,255,0.08)
    );

    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 0 32px rgba(255,255,255,0.12),
        0 30px 80px rgba(0,0,0,0.45);
}


/* ==========================================================
   3. HERO CONTENT
========================================================== */

.ljh-hero-content {
    position: relative;
    z-index: 5;
}

.ljh-title-xl {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 2.4rem;
}

.ljh-lead {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    line-height: 1.55;
    margin-bottom: 3rem;
}


/* ==========================================================
   4. BLOCKS / PANELS
========================================================== */

.ljh-block {
    position: relative;
    margin-bottom: 4.5rem;
}

.ljh-block-inner {
    padding: 2.4rem 2.6rem;
    border-radius: 26px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.16),
        rgba(255,255,255,0.07)
    );

    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.32),
        0 26px 60px rgba(0,0,0,0.45);
}


/* ==========================================================
   5. GLOBAL UI POPUP
========================================================== */

.ljh-ui-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    display: none;
    align-items: flex-start;
    justify-content: center;
}

.ljh-ui-overlay.is-open {
    display: flex;
}

.ljh-ui-popup {
    margin-top: 18vh;
    max-width: 480px;
    padding: 28px;

    background: linear-gradient(
        180deg,
        rgba(20,35,60,0.95),
        rgba(10,20,40,0.95)
    );

    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);

    box-shadow:
        0 0 0 1px rgba(120,180,255,0.12),
        0 40px 80px rgba(0,0,0,0.75);

    color: #e6f0ff;
}


/* ==========================================================
   6. SCHEMA – DAY CELLS (FINAL, SINGLE SOURCE)
========================================================== */

.ljh-day-cell {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    outline: none;

    font-weight: 600;
    text-decoration: none;

    transition: background-color 0.15s ease;
}

/* Låsta datum */
.ljh-day-cell.locked {
    opacity: 0.55;
    cursor: help;
}

/* Heatmap – låg belastning */
.ljh-day-cell.success {
    background: rgba(80,180,120,0.22);
    color: #eafff3;
}

/* Heatmap – full dag */
.ljh-day-cell.warning {
    background: rgba(255,190,90,0.26);
    color: #fff5e6;
}

/* Heatmap – överbelastning */
.ljh-day-cell.error {
    background: rgba(220,90,90,0.28);
    color: #ffecec;
}

/* Aktiv dag (dagvy) – ALLTID prioritet */
.ljh-day-cell.is-active {
    background: rgba(140,200,255,0.35);
    outline: 2px solid rgba(140,200,255,0.6);
}


/* ==========================================================
   7. RESPONSIVE
========================================================== */

@media (max-width: 768px) {
    .ljh-hero {
        padding: 100px 16px;
    }

    .ljh-hero-glass {
        border-radius: 28px;
    }
}


/* ==========================================================
   8. GLOBAL PANEL GRID
   Används i dashboards, paneler, sammanfattningar
========================================================== */

.ljh-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 1024px) {
    .ljh-panel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================
   8.1 GLOBAL PANEL ITEM
   Innehållssegment i paneler
========================================================== */

.ljh-panel-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 0.6rem;
}

.ljh-panel-item + .ljh-panel-item {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 0.8rem;
}


/* ==========================================================
   SERVICE / STORY – STEP CARD
   Enhetlig bakgrundsbricka för bild + text
========================================================== */

/* ==========================================================
   LJH STEP CARD – FINAL (SINGLE SOURCE OF TRUTH)
========================================================== */

/* ==========================================================
   LJH STEP CARD – FINAL (SINGLE SOURCE OF TRUTH)
========================================================== */

.ljh-step-card {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.6rem;

    align-items: start;

    padding: 2.4rem 3rem;
    margin: 2.4rem 0;

    border-radius: 26px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.14),
        rgba(255,255,255,0.07)
    );

    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        0 26px 60px rgba(0,0,0,0.45);
}

/* Bild vänster (default) */
.ljh-step-card.is-left {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

/* Bild höger */
.ljh-step-card.is-right {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.ljh-step-card.is-right .ljh-step-media {
    grid-column: 2;
}

.ljh-step-card.is-right .ljh-step-content {
    grid-column: 1;
}

/* Bildkontroll – HÄR styrs storleken */
.ljh-step-media {
    width: 100%;
    max-width: 360px;
}

/* Text */
.ljh-step-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.ljh-step-content h3 {
    margin: 0;
}

.ljh-step-content p {
    margin-top: 0.6rem;
    margin-bottom: 0;
}

/* Mobil */
@media (max-width: 900px) {
    .ljh-step-card {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        padding: 1.6rem;
    }

    .ljh-step-card.is-right .ljh-step-media,
    .ljh-step-card.is-right .ljh-step-content {
        grid-column: auto;
    }
}


/* ==========================================================
   Calendar Dots – v0.1 (READ ONLY)
   Used by: month view, week view
========================================================== */

.cal-dot {
  width: 8px;          /* lite större, tydligare */
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin: 2px;
}

/* Schema – personalkategorier */
.cal-dot--schema-employee { background: #F1C40F; } /* Gul */
.cal-dot--schema-lead     { background: #2ECC71; } /* Grön */
.cal-dot--schema-admin    { background: #3498DB; } /* Blå */

/* Övriga händelsetyper */
.cal-dot--meeting { background: #1ABC9C; }
.cal-dot--info    { background: #9B59B6; }
.cal-dot--absence { background: #E74C3C; }
.cal-dot--extra   { background: #F39C12; }





