
/* ==========================================================
   /assets/ui/ljh-components.css
   LJH COMPONENTS – CLEAN & STABLE
   Version 1.1
   ----------------------------------------------------------
   Ansvar:
   - Återanvändbara paneler & block
   - Dashboards & sammanfattningar
   - Schema UI
   - Side cards
   ----------------------------------------------------------
   INGA:
   - hero
   - layout
   - knappar
   - formulär
   - 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;
}


/* ==========================================================
   SCHEMA – DAY CELLS
========================================================== */

.ljh-day-cell {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    border-radius: 10px;

    font-weight: 600;
    text-decoration: none;
    background: transparent;

    transition: background-color 0.15s ease;
}

.ljh-day-cell.locked {
    opacity: 0.55;
    cursor: help;
}

.ljh-day-cell.success {
    background: rgba(80,180,120,0.22);
    color: #eafff3;
}

.ljh-day-cell.warning {
    background: rgba(255,190,90,0.26);
    color: #fff5e6;
}

.ljh-day-cell.error {
    background: rgba(220,90,90,0.28);
    color: #ffecec;
}

.ljh-day-cell.is-active {
    background: rgba(140,200,255,0.35);
    outline: 2px solid rgba(140,200,255,0.6);
}


/* ==========================================================
   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;
}


/* ==========================================================
   DIGITAL NOTES ITEMS LIST
========================================================== */

.ljh-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ljh-item-link:hover .ljh-item-card {
    transform: translateY(-2px);
}


/* ==========================================================
   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 – BASE (ADMIN / OFFICE)
========================================================== */

.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; }


.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);
}

.notes-badge.is-priority-high {
  background: rgba(255, 60, 60, 0.55);
  color: #fff;
}

.notes-badge.is-priority-normal {
  background: rgba(255, 190, 0, 0.55);
  color: #000;
}

.notes-badge.is-priority-low {
  background: rgba(100, 170, 255, 0.55);
  color: #fff;
}


.notes-card {
    position: relative;
    padding: 16px 18px;
    margin-bottom: 14px;
    border-radius: 16px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.04)
    );

    backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 10px 25px rgba(0,0,0,0.35);

    transition: all 0.2s ease;
}

.notes-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.notes-card-title {
    font-weight: 600;
    font-size: 15px;
}

.notes-card-meta {
    opacity: 0.75;
    font-size: 13px;
}

.notes-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notes-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 6px 0 0 6px;
  background: transparent;
}

.notes-card.is-priority-high {
    border: 1px solid rgba(255, 60, 60, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 12px 30px rgba(255, 60, 60, 0.25);
}

.notes-card.is-priority-normal::before {
  background: rgba(255, 190, 0, 0.9);
}

.notes-card.is-priority-low::before {
  background: rgba(100, 170, 255, 0.9);
}

.notes-card.is-priority-high::before {
  background: rgba(255, 60, 60, 0.95);
}


.notes-badge.is-status[data-status="pending"] {
    background: rgba(180,180,180,0.55);
}

.notes-badge.is-status[data-status="in_progress"] {
    background: rgba(70,130,255,0.55);
}

.notes-badge.is-status[data-status="completed"] {
    background: rgba(255,170,0,0.55);
}

.notes-badge.is-status[data-status="approved"] {
    background: rgba(40,200,120,0.55);
}

.notes-badge.is-status[data-status="archived"] {
    background: rgba(120,120,120,0.45);
}


.notes-muted {
    opacity: 0.5;
    font-size: 11px;
}


.notes-card[data-status="approved"],
.notes-card[data-status="archived"] {
    opacity: 0.65;
}


/* ==========================================================
   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;
}

.ljh-control-description {
    font-size: 0.95rem;
    opacity: 0.75;
}


/* ==========================================================
   CONTROL PANEL TITLES
========================================================== */

.ljh-control-title {
    font-size: 1.4rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #8bc4ff; /* samma blå ton som tidigare */
}

.ljh-control-description {
    font-size: 0.95rem;
    opacity: 0.75;
    color: rgba(255,255,255,0.75);
}


.notes-card .card-title {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
}

.notes-card .card-title:hover {
    text-decoration: none;
    color: var(--ljh-accent, #7ec8ff);
}

.notes-card a {
    text-decoration: none;
    color: inherit;
}


.ljh-card-title {
color: inherit;
text-decoration: none;
font-weight: 600;
}

.ljh-card-title:hover {
color: var(--ljh-accent);
}


/* ==========================================================
   LJH TABLE (Component)
========================================================== */

.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);
}

.ljh-table-head {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.ljh-table-row:hover {
    background: rgba(0,255,200,0.06);
}


/* ==========================================================
   LJH Versions – Highlight System
========================================================== */

/* 🟢 Aktiv version */
.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
    );
}

/* 🔵 Nästa version */
.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
    );
}

/* ⚫ Arkiverade */
.ljh-table-row .muted {
    opacity: 0.45;
}

/* ==========================================================
   Action Buttons (för bättre spacing)
========================================================== */

.ljh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ==========================================================
   Badge finjustering
========================================================== */

.ljh-badge.is-info {
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.35);
}

/* ==========================================================
   Hover-effekt (subtil men proffsig)
========================================================== */

.ljh-table-row:hover {
    transform: translateY(-1px);
    transition: all 0.15s ease;
}


/* ==========================================================
   LJH ROADMAP
========================================================== */

.ljh-roadmap {
    position: relative;
    margin-top: 20px;
    padding-left: 20px;
}

/* vertikal linje */
.ljh-roadmap::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.ljh-roadmap-item {
    position: relative;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

/* punkt */
.ljh-roadmap-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin-top: 6px;
}

/* aktiv */
.ljh-roadmap-item.is-active .ljh-roadmap-dot {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.6);
}

/* nästa */
.ljh-roadmap-item.is-next .ljh-roadmap-dot {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59,130,246,0.5);
}

/* text */
.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;
}

.ljh-roadmap::before {
    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.is-archived {
    opacity: 0.35;
}

.ljh-roadmap-item.is-active .ljh-roadmap-dot {
    animation: pulseGlow 2s infinite;
}

@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); }
}




