/**
 * 파일경로: /assets/css/ll-report.css
 * 파일역할: E-나 AI 리포트 스타일 (Ver 15.0 - Full Layout)
 * * [기능 1] 환자용 리포트 UI: 페르소나, 건강 방정식, 주간 리듬
 * * [기능 2] 의사용 리포트 UI: SOAP 노트 문서 스타일
 * * [기능 3] 공통 UI: 탭, 필터, 버튼, 로더
 */

/* ==========================================================================
   1. Layout & Container
   ========================================================================== */

/* 리포트 오버레이 전체화면 보정 */
#ll-report-overlay.ll-overlay {
    align-items: center;
    justify-content: stretch;
}

#ll-report-overlay .ll-overlay-content {
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    transform: none;
    display: flex;
    flex-direction: column;
}

#ll-report-overlay.is-open .ll-overlay-content {
    transform: none;
}

.ll-report-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.ll-report-header {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.ll-report-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
}

.ll-btn-icon {
    background: none;
    border: none;
    font-size: 24px;
    color: #636e72;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.ll-btn-icon:hover { color: #2d3436; }

/* Controls (Tabs & Chips) */
.ll-report-controls {
    background: #fff;
    padding: 10px 20px 15px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    z-index: 9;
}

.ll-report-type-tabs {
    display: flex;
    background: #f0f2f5;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 12px;
}

.ll-report-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.ll-report-tab.active {
    background: #fff;
    color: #4b7bec;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ll-report-period-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.ll-report-period-chips::-webkit-scrollbar { display: none; }

.ll-chip {
    border: 1px solid #eee;
    background: #fff;
    color: #636e72;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.ll-chip:hover { background: #f9f9f9; }

.ll-chip.active {
    background: #4b7bec;
    color: #fff;
    border-color: #4b7bec;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(75, 123, 236, 0.2);
}

/* Body Scroll Area */
.ll-report-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   2. Patient View (My Report) Cards
   ========================================================================== */
.ll-report-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #f5f6fa;
    transition: transform 0.2s;
}

/* [NEW] Persona Card */
.persona-card {
    background: linear-gradient(135deg, #4b7bec 0%, #3867d6 100%);
    color: #fff;
    text-align: center;
    border: none;
    box-shadow: 0 8px 20px rgba(75, 123, 236, 0.25);
}

.ll-persona-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.3);
}

.ll-persona-desc {
    font-size: 15px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

/* Summary Card */
.ll-rc-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}
.ll-rc-icon { font-size: 24px; }
.ll-rc-title { font-size: 17px; font-weight: 700; color: #2d3436; margin: 0; }

.ll-rc-text {
    font-size: 15px;
    line-height: 1.6;
    color: #57606f;
    margin: 0;
}

.ll-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.ll-stat-box {
    background: #f9fbfc;
    padding: 15px 10px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #f1f2f6;
}

.ll-stat-label {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.ll-stat-val {
    font-size: 18px;
    font-weight: 800;
    color: #2d3436;
}

/* [NEW] Analysis List (건강 방정식) */
.ll-analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ll-analysis-list li {
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ll-analysis-list li:last-child { margin-bottom: 0; }

.ll-analysis-list li.good {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.ll-analysis-list li.bad {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.ll-analysis-list li.neutral {
    background: #f5f5f5;
    color: #616161;
    border-left: 4px solid #9e9e9e;
}

.ll-analysis-note {
    font-size: 12px;
    color: #b2bec3;
    margin-top: 12px;
    text-align: right;
    font-style: italic;
}

/* [NEW] Weekly Rhythm */
.ll-rhythm-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
}

.ll-rhythm-summary span {
    font-size: 14px;
    color: #636e72;
}

.ll-rhythm-summary strong {
    color: #2d3436;
    font-size: 16px;
    font-weight: 700;
    margin-left: 4px;
}

.ll-rhythm-summary .sep {
    color: #ddd;
    font-size: 12px;
}

/* Questions Accordion */
.ll-question-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ll-q-item {
    border: 1px solid #f1f2f6;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s;
}

.ll-q-item.open {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #4b7bec;
}

.ll-q-head {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
}

.ll-q-head:active { background: #f9f9f9; }

.ll-q-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ll-q-star {
    font-size: 20px;
    color: #dfe6e9;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: all 0.2s;
}

.ll-q-star:hover { transform: scale(1.2); }
.ll-q-star.active { color: #f1c40f; }

.ll-q-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
}

.ll-q-arrow {
    color: #b2bec3;
    transition: transform 0.3s;
    margin-left: 10px;
    font-size: 12px;
}

.ll-q-item.open .ll-q-arrow { transform: rotate(180deg); }

.ll-q-body {
    display: none;
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #f1f2f6;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

.ll-q-item.open .ll-q-body { display: block; }

.ll-q-reason {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #dfe6e9;
    font-size: 13px;
    color: #4b7bec;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Lock Style (For Pro Features) */
.ll-q-item.is-locked {
    background-color: #f5f5f5;
    opacity: 0.8;
}
.ll-q-item.is-locked .ll-q-title { color: #888; }

/* ==========================================================================
   3. Doctor View (SOAP Note)
   ========================================================================== */
.ll-doc-paper {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid #dfe6e9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border-radius: 4px; /* 종이 느낌 */
}

.ll-doc-head {
    border-bottom: 2px solid #2d3436;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ll-doc-logo {
    font-weight: 900;
    color: #4b7bec;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.ll-doc-meta {
    text-align: right;
    font-size: 13px;
    color: #636e72;
    line-height: 1.5;
}

.ll-doc-section {
    margin-bottom: 25px;
}

.ll-doc-h {
    font-size: 15px;
    font-weight: 800;
    color: #2d3436;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ll-doc-p {
    font-size: 14px;
    line-height: 1.7;
    color: #2d3436;
    margin: 0;
    text-align: justify;
}

.ll-doc-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 14px;
    color: #2d3436;
    margin: 10px 0;
    line-height: 1.6;
}

.ll-doc-list li { margin-bottom: 5px; }

.ll-doc-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #b2bec3;
    font-style: italic;
}

/* ==========================================================================
   4. Common Elements
   ========================================================================== */

/* Action Buttons */
.ll-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.ll-btn-download {
    flex: 2;
    background: #2d3436;
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.ll-btn-download:hover { background: #000; }

.ll-btn-share {
    flex: 1;
    background: #fff;
    color: #2d3436;
    border: 1px solid #dfe6e9;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.ll-btn-share:hover { background: #f5f6fa; }

/* Loader */
.ll-loader-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #b2bec3;
    font-size: 15px;
}

/* Error State */
.ll-error-state {
    text-align: center;
    padding: 60px 20px;
    color: #636e72;
}
.ll-error-state .dashicons { color: #ff7675; margin-bottom: 15px; }

/* ==========================================================================
   5. Enhanced Report Components
   ========================================================================== */

/* Persona placeholder (데이터 부족 시) */
.persona-card-placeholder {
    background: #f8f9fa;
    text-align: center;
    border: 1px dashed #dfe6e9;
}

/* Dynamic stat grid (항목 수에 따라 자동 조정) */
.ll-stat-grid--dynamic {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

/* Correlation dot indicator */
.ll-corr-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    flex-shrink: 0;
}
.ll-corr-dot.good { background: #20bf6b; }
.ll-corr-dot.bad { background: #eb3b5a; }
.ll-corr-dot.neutral { background: #b2bec3; }

.ll-corr-val {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 4px;
}

/* Weekly rhythm bar chart */
.ll-rhythm-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 80px;
    padding: 0 8px;
    margin-bottom: 12px;
}

.ll-rhythm-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
    gap: 4px;
}

.ll-rhythm-bar {
    width: 20px;
    background: #dfe6e9;
    border-radius: 4px 4px 0 0;
    transition: height 0.4s ease;
    min-height: 4px;
}

.ll-rhythm-bar.best {
    background: linear-gradient(180deg, #4b7bec, #3867d6);
}

.ll-rhythm-bar.worst {
    background: linear-gradient(180deg, #ff7675, #d63031);
}

.ll-rhythm-day {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.ll-rhythm-day.best { color: #4b7bec; font-weight: 700; }
.ll-rhythm-day.worst { color: #d63031; font-weight: 700; }

.ll-rhythm-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.ll-rhythm-tag.best {
    background: #e3f2fd;
    color: #1565c0;
}

.ll-rhythm-tag.worst {
    background: #ffebee;
    color: #c62828;
}

.ll-rhythm-tag strong {
    font-weight: 800;
}

/* Question count badge */
.ll-q-count {
    font-size: 12px;
    background: #4b7bec;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: auto;
}

/* Empty question state */
.ll-empty-q-state {
    text-align: center;
    padding: 30px 20px;
}

/* ==========================================================================
   6. Doctor View Enhanced
   ========================================================================== */

/* Vitals Table */
.ll-doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}

.ll-doc-table th {
    background: #f5f6fa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: #2d3436;
    border-bottom: 2px solid #dfe6e9;
}

.ll-doc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f2f6;
    color: #444;
}

.ll-doc-table tr:last-child td {
    border-bottom: none;
}

/* Status badges in table */
.ll-doc-status {
    font-weight: 700;
    font-size: 12px;
}

.ll-doc-status--good { color: #20bf6b; }
.ll-doc-status--fair { color: #fa8231; }
.ll-doc-status--low { color: #eb3b5a; }
.ll-doc-status---  { color: #b2bec3; }

/* Patient concerns highlight */
.ll-doc-concerns {
    background: #fffbf0;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

/* ==========================================================================
   7. Vital Analysis Cards (NEW)
   ========================================================================== */

/* 바이탈 종합 분석 카드 */
.ll-report-vital-card {
    border: 1px solid #e0e7ff;
    background: linear-gradient(180deg, #fff 0%, #f8f9ff 100%);
}

.ll-rv-item {
    padding: 16px 0;
    border-bottom: 1px solid #f1f2f6;
}
.ll-rv-item:last-child { border-bottom: none; }
.ll-rv-item--compact { padding: 12px 0; }

.ll-rv-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.ll-rv-icon { font-size: 18px; }
.ll-rv-name { font-size: 15px; font-weight: 700; color: #2d3436; }
.ll-rv-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    margin-left: auto;
}

.ll-rv-stats { padding-left: 26px; }
.ll-rv-main {
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.ll-rv-val { font-size: 24px; font-weight: 800; color: #2d3436; }
.ll-rv-unit { font-size: 12px; color: #999; }

.ll-rv-details { display: flex; flex-direction: column; gap: 4px; }
.ll-rv-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    padding: 3px 0;
}
.ll-rv-detail-row span:first-child { color: #999; }
.ll-rv-detail-row span:last-child { font-weight: 600; color: #444; }

.ll-rv-alert {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff8f0;
    border: 1px solid #ffe0b2;
    border-radius: 10px;
    font-size: 12px;
    color: #e65100;
    line-height: 1.5;
    margin-left: 26px;
}

/* 목표 달성률 바 */
.ll-rv-target {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-left: 26px;
    font-size: 12px;
    color: #999;
}
.ll-rv-target-bar {
    flex: 1;
    height: 8px;
    background: #f1f2f6;
    border-radius: 4px;
    overflow: hidden;
}
.ll-rv-target-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.ll-rv-target-pct { font-weight: 700; color: #2d3436; min-width: 35px; text-align: right; }

/* 리포트 차트 래퍼 */
.ll-report-chart-wrap {
    padding: 8px 0;
}

/* 약물-바이탈 연관 카드 */
.ll-rc-sub {
    font-size: 13px;
    color: #999;
    margin: -8px 0 16px;
}

.ll-mv-row {
    padding: 14px 0;
    border-bottom: 1px solid #f1f2f6;
}
.ll-mv-row:last-child { border-bottom: none; }

.ll-mv-label {
    font-size: 14px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
}

.ll-mv-bar-group { display: flex; flex-direction: column; gap: 6px; }
.ll-mv-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ll-mv-bar-label {
    font-size: 11px;
    color: #999;
    width: 45px;
    flex-shrink: 0;
}
.ll-mv-bar {
    flex: 1;
    height: 10px;
    background: #f1f2f6;
    border-radius: 5px;
    overflow: hidden;
}
.ll-mv-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}
.ll-mv-bar-fill.on { background: linear-gradient(90deg, #4b7bec, #3867d6); }
.ll-mv-bar-fill.off { background: linear-gradient(90deg, #ff7675, #d63031); }
.ll-mv-bar-val {
    font-size: 12px;
    font-weight: 700;
    color: #2d3436;
    min-width: 30px;
    text-align: right;
}

.ll-mv-diff {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    text-align: right;
}
.ll-mv-diff.effective { color: #0ca678; font-weight: 600; }

/* 질문 유형 뱃지 (바이탈 질문 구분) */
.ll-q-type-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    background: #e3f2fd;
    color: #1565c0;
    flex-shrink: 0;
}
.ll-q-item--vital {
    border-color: #bbdefb;
}
.ll-q-item--vital .ll-q-head {
    background: #fafcff;
}

/* ================================================ */
/* 의사 진료 참고 카드 (Patient Card)               */
/* ================================================ */

.ll-pc-paper {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* 헤더 */
.ll-pc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #4b7bec;
    margin-bottom: 20px;
}
.ll-pc-logo {
    font-size: 16px;
    font-weight: 800;
    color: #4b7bec;
}
.ll-pc-date {
    font-size: 12px;
    color: #999;
}

/* 환자 기본 정보 */
.ll-pc-patient-info {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.ll-pc-patient-name {
    font-size: 20px;
    font-weight: 800;
    color: #2d3436;
}
.ll-pc-patient-meta {
    font-size: 13px;
    color: #636e72;
    margin-top: 4px;
}

/* 섹션 */
.ll-pc-section {
    margin-bottom: 20px;
}
.ll-pc-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

/* 질병 카드 */
.ll-pc-disease-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #fafbfd;
    border: 1px solid #eef1f6;
}
.ll-pc-main-disease {
    border-left: 4px solid #4b7bec;
    background: #f0f4ff;
}
.ll-pc-disease-name {
    font-size: 14px;
    font-weight: 700;
    color: #2d3436;
}
.ll-pc-main-tag {
    font-size: 10px;
    background: #4b7bec;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
    font-weight: 600;
}
.ll-pc-disease-cat {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
.ll-pc-disease-summary {
    font-size: 12px;
    color: #636e72;
    margin-top: 6px;
    line-height: 1.5;
}

/* 약물 */
.ll-pc-med-item {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #fafbfd;
    border: 1px solid #eef1f6;
}
.ll-pc-med-name {
    font-size: 13px;
    font-weight: 700;
    color: #2d3436;
}
.ll-pc-med-meta {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* 바이탈 카드 */
.ll-pc-vital-card {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #fafbfd;
    border: 1px solid #eef1f6;
}
.ll-pc-vital-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #636e72;
    margin-bottom: 8px;
}
.ll-pc-vital-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
}
.ll-pc-vital-badge.normal { background: #e6f9f0; color: #0ca678; }
.ll-pc-vital-badge.caution { background: #fff3e0; color: #e65100; }
.ll-pc-vital-badge.warning { background: #fff3e0; color: #e65100; }
.ll-pc-vital-badge.danger { background: #ffebee; color: #c62828; }
.ll-pc-vital-main {
    font-size: 28px;
    font-weight: 900;
    color: #2d3436;
    line-height: 1;
}
.ll-pc-vital-main span {
    font-size: 13px;
    font-weight: 400;
    color: #999;
}
.ll-pc-vital-detail {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}
.ll-pc-vital-chart {
    margin-top: 10px;
}

/* 복약 순응도 */
.ll-pc-adherence {
    margin-bottom: 20px;
}
.ll-pc-adherence-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ll-pc-adherence-bar {
    flex: 1;
    height: 10px;
    background: #f1f2f6;
    border-radius: 5px;
    overflow: hidden;
}
.ll-pc-adherence-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s;
}
.ll-pc-adherence-fill.good { background: linear-gradient(90deg, #0ca678, #20bf6b); }
.ll-pc-adherence-fill.fair { background: linear-gradient(90deg, #f7b731, #e1a02f); }
.ll-pc-adherence-fill.poor { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.ll-pc-adherence-val {
    font-size: 14px;
    font-weight: 800;
    color: #2d3436;
    min-width: 40px;
}
.ll-pc-adherence-note {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* 컨디션 */
.ll-pc-condition { margin-bottom: 20px; }
.ll-pc-cond-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ll-pc-cond-item {
    flex: 1;
    min-width: 70px;
    padding: 10px;
    background: #fafbfd;
    border-radius: 10px;
    border: 1px solid #eef1f6;
    text-align: center;
    font-size: 12px;
    color: #636e72;
}
.ll-pc-cond-item strong {
    display: block;
    font-size: 18px;
    color: #2d3436;
    margin-bottom: 2px;
}
.ll-pc-cond-label { font-size: 11px; color: #999; }
.ll-pc-cond-warn { border-color: #ffcccc; background: #fff8f8; }
.ll-pc-cond-warn strong { color: #c62828; }

/* 병원 방문 */
.ll-pc-visit-item {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #fafbfd;
    border: 1px solid #eef1f6;
}
.ll-pc-visit-date {
    font-size: 11px;
    color: #999;
}
.ll-pc-visit-title {
    font-size: 13px;
    font-weight: 700;
    color: #2d3436;
    margin-top: 2px;
}
.ll-pc-visit-done {
    font-size: 10px;
    background: #e6f9f0;
    color: #0ca678;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 600;
}
.ll-pc-visit-pending {
    font-size: 10px;
    background: #fff3e0;
    color: #e65100;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 600;
}
.ll-pc-visit-note {
    font-size: 12px;
    color: #636e72;
    margin-top: 4px;
    line-height: 1.4;
}

/* AI 분석 */
.ll-pc-ai-note {
    margin-bottom: 20px;
}
.ll-pc-ai-assessment {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    padding: 10px;
    background: #fafbfd;
    border-radius: 10px;
    margin-bottom: 8px;
}
.ll-pc-ai-plan {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    padding: 10px;
    background: #f0f7ff;
    border-radius: 10px;
    border-left: 3px solid #4b7bec;
}

/* 빈 상태 */
.ll-pc-empty {
    padding: 12px;
    text-align: center;
    color: #b2bec3;
    font-size: 13px;
}

/* 푸터 */
.ll-pc-footer {
    text-align: center;
    font-size: 11px;
    color: #b2bec3;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Animation */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}