/* Uitlijning van legenda-items links en Slimme Planning knop volledig aan de rechterkant */
.legend {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    box-sizing: border-box;
    gap: 0.6rem 1.25rem;
}

.legend-items-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center !important;
    flex: 1 1 auto;
    gap: 0.6rem 1.35rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.legend-tools-btn {
    padding: 0.24rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.2;
    border-radius: 7px;
    margin-left: auto;
    flex-shrink: 0;
}

.smart-tools-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e3a8a;
    padding: 0.24rem 0.65rem;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.smart-tools-toggle-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.smart-tools-pill {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    line-height: 1.2;
}

.smart-tools-chevron {
    font-size: 0.85rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.smart-tools-panel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.smart-tools-panel.hidden {
    display: none !important;
}

.smart-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
}

.smart-tool-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.smart-tool-card h3 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1e3a8a;
}

.smart-tool-muted {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.45;
    color: #475569;
}

/* Kaart 1: Werkdagen 2x2 tegels */
.workdays-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
}

.workday-stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-direction: column;
}

.workday-stat-box.accent {
    background: #eff6ff;
    border-color: #93c5fd;
}

.workday-stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.workday-stat-box.accent .workday-stat-num {
    color: #2563eb;
}

.workday-stat-lbl {
    font-size: 0.74rem;
    color: #64748b;
}

/* Kaart 2: Brugdagen lijst */
.bridge-tips-list {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #1e293b;
}

/* Kaart 3: Weekzoeker & Datumcalculator */
.tool-inline-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 0.84rem;
}

.date-calc-box {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.date-calc-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.date-calc-result {
    font-size: 0.84rem;
    color: #1e3a8a;
    background: #eff6ff;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}

/* Weeknummer highlight op kalender */
.week-highlight-active {
    background-color: #fef08a !important;
    color: #854d0e !important;
    outline: 1.5px solid #eab308;
    transition: background-color 0.25s ease;
}

/* Kaart 4: Maanstandenlijst en badge op kalender */
.moon-phases-scroll {
    max-height: 155px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-right: 0.2rem;
}

.moon-phase-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.28rem 0.5rem;
    font-size: 0.79rem;
}

.moon-phase-name {
    font-weight: 600;
    color: #1e293b;
}

.moon-phase-date {
    font-weight: 700;
    color: #2563eb;
    font-variant-numeric: tabular-nums;
}

.moon-phase-date small {
    font-weight: 500;
    color: #64748b;
}

.day-moon-badge {
    position: absolute;
    top: 1px;
    right: 2px;
    font-size: 0.58rem;
    line-height: 1;
    pointer-events: none;
}

.single-month-card .day-moon-badge {
    top: 5px;
    right: 6px;
    font-size: 0.85rem;
}
