
/* ==========================================================
   /ui/css/base/ljh-components.css
   LJH COMPONENTS – Base Layer
   ----------------------------------------------------------
   Ansvar:
   - Återanvändbara paneler & block
   - Panel grid & struktur
   - Side cards
   - Step cards
   - Control panel struktur
   - LJH Table
   - Badges (globala)
   - Roadmap
   - Admin glass panel
   - Item row layout
   - Inline form
   ----------------------------------------------------------
   INGA:
   - hero, layout, knappar, formulär
   - modul-specifika komponenter
   - globala bakgrunder
========================================================== */


/* ==========================================================
   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);
}


/* ==========================================================
   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;
}


/* ==========================================================
   ADMIN GLASS PANEL
   (från ljh-banner.css)
========================================================== */

.ljh-admin-glass-panel {
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(22px) saturate(160%);
    border-radius: 28px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.45),
        inset 0 0 40px rgba(255,255,255,0.06);
}


/* ==========================================================
   GLOBAL PANEL GRID
========================================================== */

.ljh-panel-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.ljh-panel-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ljh-panel-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 1024px) {
    .ljh-panel-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================
   PANEL ITEM
========================================================== */

.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;
}


/* ==========================================================
   STEP CARD – STORY / SERVICE
========================================================== */

.ljh-step-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.6rem;
    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%);
    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);
}

@media (max-width: 900px) {
    .ljh-step-card {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        padding: 1.6rem;
    }
}


/* ==========================================================
   SIDE CARD
========================================================== */

.ljh-side-card {
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.14),
        rgba(255,255,255,0.06)
    );
    backdrop-filter: blur(12px) saturate(130%);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        0 18px 40px rgba(0,0,0,0.45);
}

.ljh-presence-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ljh-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.available  { background: #2ecc71; }
.busy       { background: #f1c40f; }
.away       { background: #95a5a6; }


/* ==========================================================
   ITEM LINK
========================================================== */

.ljh-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ljh-item-link:hover .ljh-item-card { transform: translateY(-2px); }


/* ==========================================================
   ITEM ROW LAYOUT
   (från ljh-banner.css)
========================================================== */

.ljh-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ljh-item-title {
    flex: 1;
    min-width: 0;
}

.ljh-item-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ljh-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ljh-inline-form {
    display: inline-flex;
    margin: 0;
}


/* ==========================================================
   CARD TITLES
========================================================== */

.ljh-card-title {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.ljh-card-title:hover { color: var(--ljh-accent); }


/* ==========================================================
   GLOBAL BADGES
========================================================== */

.notes-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
}

.ljh-badge.is-info {
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.35);
}


/* ==========================================================
   CONTROL PANEL – BASE STRUCTURE
========================================================== */

.ljh-control-panel {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
}

.ljh-control-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.ljh-control-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ljh-control-title {
    font-size: 1.4rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #8bc4ff;
}

.ljh-control-description {
    font-size: 0.95rem;
    opacity: 0.75;
    color: rgba(255,255,255,0.75);
}


/* ==========================================================
   LJH TABLE
========================================================== */

.ljh-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ljh-table-row {
    display: grid;
    grid-template-columns: 120px 1fr 120px 120px 120px 100px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    transition: all 0.15s ease;
}

.ljh-table-head {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.ljh-table-row:hover {
    background: rgba(0,255,200,0.06);
    transform: translateY(-1px);
}

.ljh-table-row.is-active {
    border: 1px solid rgba(34,197,94,0.5);
    box-shadow: 0 0 14px rgba(34,197,94,0.35);
    background: linear-gradient(to right, rgba(34,197,94,0.08), transparent);
}

.ljh-table-row.is-next {
    border: 1px solid rgba(59,130,246,0.5);
    box-shadow: 0 0 10px rgba(59,130,246,0.25);
    background: linear-gradient(to right, rgba(59,130,246,0.08), transparent);
}

.ljh-table-row .muted { opacity: 0.45; }

.ljh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


/* ==========================================================
   LJH ROADMAP
========================================================== */

.ljh-roadmap {
    position: relative;
    margin-top: 20px;
    padding-left: 20px;
}

.ljh-roadmap::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(34,197,94,0.4),
        rgba(59,130,246,0.3),
        rgba(255,255,255,0.05)
    );
}

.ljh-roadmap-item {
    position: relative;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.ljh-roadmap-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin-top: 6px;
}

.ljh-roadmap-item.is-active .ljh-roadmap-dot {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.6);
    animation: pulseGlow 2s infinite;
}

.ljh-roadmap-item.is-next .ljh-roadmap-dot {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59,130,246,0.5);
}

.ljh-roadmap-item.is-archived { opacity: 0.35; }

.ljh-roadmap-title  { font-weight: 600; }
.ljh-roadmap-name   { font-size: 0.9rem; opacity: 0.85; }
.ljh-roadmap-meta   { font-size: 0.75rem; margin-top: 4px; }

@keyframes pulseGlow {
    0%   { box-shadow: 0 0 6px rgba(34,197,94,0.4); }
    50%  { box-shadow: 0 0 14px rgba(34,197,94,0.8); }
    100% { box-shadow: 0 0 6px rgba(34,197,94,0.4); }
}

