/* ==========================================================================
   SamurAI Full Clinical WOW-Features Stylesheet
   ========================================================================== */

/* Therapist Resource Check-in Card */
.resource-widget-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.resource-title {
    font-size: 13px;
    color: #E2E8F0;
}

.resource-status-badge {
    font-size: 11px;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 8px;
    border-radius: 999px;
}

.resource-drops-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.resource-drop-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 16px;
}

.resource-drop-btn:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: var(--drop-color);
    box-shadow: 0 4px 15px var(--drop-color);
}

.resource-drop-btn.active {
    background: var(--drop-color);
    border-color: #FFFFFF;
    box-shadow: 0 0 16px var(--drop-color);
    transform: scale(1.1);
}

.resource-footer-note {
    font-size: 11px;
    color: #64748B;
    font-style: italic;
}

/* Close Day Ritual Modal */
.close-day-box {
    max-width: 500px;
    text-align: center;
}

.close-day-enso-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px auto;
}

.enso-closing-svg {
    width: 100%;
    height: 100%;
}

.close-day-checklist {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.close-day-checklist .check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #CBD5E1;
    margin-bottom: 6px;
    cursor: pointer;
}

/* Odesa Alert Box */
.odesa-alert-box {
    max-width: 580px;
}

.alert-action-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.alert-action-card {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 14px;
}

.alert-action-card .card-title {
    font-size: 13px;
    font-weight: 700;
    color: #FCA5A5;
    margin-bottom: 6px;
}

.alert-action-card .card-desc {
    font-size: 12px;
    color: #CBD5E1;
    margin-bottom: 8px;
}

.copy-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
    color: #F8FAFC;
    line-height: 1.5;
    margin-bottom: 10px;
    user-select: all;
}

/* River of Therapy */
.river-container-wrap {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.river-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.river-header h4 {
    font-size: 14px;
    color: #F8FAFC;
    margin: 0;
}

.river-legend {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: #94A3B8;
}

.river-legend .leg-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.river-legend .leg-dot.crisis { background: #EF4444; }
.river-legend .leg-dot.stable { background: #10B981; }

.river-canvas-relative {
    position: relative;
    width: 100%;
    overflow-x: auto;
}

.river-svg {
    width: 100%;
    min-width: 650px;
    height: 140px;
    display: block;
}

.river-markers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 650px;
    height: 100%;
    pointer-events: none;
}

.river-marker {
    position: absolute;
    top: 20px;
    width: 60px;
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
}

.river-marker .marker-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 auto 4px auto;
    border: 2px solid #FFFFFF;
}

.river-marker .marker-dot.crisis { background: #EF4444; box-shadow: 0 0 10px #EF4444; }
.river-marker .marker-dot.stable { background: #10B981; box-shadow: 0 0 10px #10B981; }

.river-marker .marker-label {
    font-size: 11px;
    font-weight: 700;
    color: #F8FAFC;
    display: block;
}

.river-marker .marker-sub {
    font-size: 9px;
    color: #94A3B8;
    display: block;
}

/* Microphone Recording Pulse */
#btn-voice-note.recording {
    background: #EF4444 !important;
    color: #FFFFFF !important;
    animation: voiceMicPulse 1.2s infinite;
}

@keyframes voiceMicPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
