/* =====================================================================
   Daily Sadhana (Phase 9) - only what the shared CMS styles
   (cms/cms.css: cards, meta, buttons, status badges, form controls)
   and classes/classes.css (.vc-today-head/.vc-today-label/
   .vc-today-title - reused as-is for the Today card) do not already
   cover.
   ===================================================================== */

/* ---- Today's Sadhana (day panel) - mirrors .vc-today-class-slot /
   .vc-today-class, its own container only ---- */

.vc-today-sadhana-slot {
    margin: 8px 0 10px;
}

.vc-today-sadhana {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

.vc-today-sadhana .vc-today-head {
    justify-content: space-between;
}

.vc-sadhana-progress-chip {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(76, 175, 80, 0.2);
}

.vc-sadhana-open {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 13px;
}


/* ---- checklist summary ---- */

.vc-sadhana-summary {
    margin: 0 4px 14px;
}

.vc-sadhana-summary-title {
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.vc-sadhana-summary-count {
    margin-top: 2px;
    font-size: 13px;
    opacity: 0.85;
}

.vc-sadhana-period-title {
    margin: 16px 4px 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
}


/* ---- one checklist item ---- */

.vc-sadhana-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.vc-sadhana-item + .vc-sadhana-item {
    margin-top: 8px;
}

.vc-sadhana-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    accent-color: #4caf50;
}

.vc-sadhana-item.is-done {
    opacity: 0.65;
}

.vc-sadhana-item.is-done .vc-sadhana-item-title {
    text-decoration: line-through;
}

.vc-sadhana-item-text {
    min-width: 0;
    flex: 1 1 auto;
}

.vc-sadhana-item-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.vc-sadhana-item-title {
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.vc-sadhana-item-kind {
    font-size: 11px;
    opacity: 0.7;
}

.vc-sadhana-item-optional {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.vc-sadhana-item-desc {
    margin-top: 3px;
    font-size: 13px;
    opacity: 0.75;
    overflow-wrap: anywhere;
}

.vc-sadhana-footer {
    margin-top: 16px;
}


/* ---- history ---- */

.vc-sadhana-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.vc-sadhana-history-row + .vc-sadhana-history-row {
    margin-top: 6px;
}

.vc-sadhana-history-date {
    font-size: 14px;
}

.vc-sadhana-history-count {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.85;
}


/* ---- admin item editor (Sadhana Manager, Phase 8 wide panel) ---- */

.vc-sadhana-item-row {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vc-sadhana-item-row > * + * {
    margin-top: 8px;
}

.vc-sadhana-item-row-head {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0;
}

.vc-sadhana-item-row-head select {
    flex: 1 1 120px;
    min-width: 0;
}


/* ---- light theme ---- */

:root[data-theme="light"] .vc-today-sadhana,
:root[data-theme="light"] .vc-sadhana-item,
:root[data-theme="light"] .vc-sadhana-history-row,
:root[data-theme="light"] .vc-sadhana-item-row {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}
