/* Pregnancy Symptom Tracker */

/* Setup card */
.st-setup-card {
    max-width: 560px;
    margin: -16px auto 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61,47,80,0.10);
    padding: 32px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.st-setup-title {
    font-size: 20px;
    font-weight: 800;
    color: #3D2F50;
    margin: 0 0 8px;
    text-transform: none;
    letter-spacing: 0;
}

.st-setup-desc {
    font-size: 16px;
    color: #695A80;
    margin: 0 0 20px;
    line-height: 1.5;
}

.st-date-selects {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.st-select {
    padding: 10px 12px;
    border: 1.5px solid rgba(139,123,184,0.18);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #3D2F50;
    background: #fff;
    appearance: auto;
}

.st-select:focus {
    outline: none;
    border-color: #8B7BB8;
    box-shadow: 0 0 0 3px rgba(139,123,184,0.12);
}

.st-select-small {
    padding: 8px 10px;
    font-size: 15px;
}

/* Primary button */
.st-btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #7BC8B8, #5aa898);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.st-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123,200,184,0.3);
}

.st-btn-small {
    padding: 10px 20px;
    font-size: 15px;
}

/* Dashboard */
.st-dashboard {
    max-width: 560px;
    margin: -16px auto 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61,47,80,0.10);
    padding: 20px 24px;
    position: relative;
    z-index: 1;
}

.st-dash-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.st-week-badge {
    display: flex;
    flex-direction: column;
}

.st-week-number {
    font-size: 22px;
    font-weight: 800;
    color: #3D2F50;
}

.st-trimester {
    font-size: 14px;
    font-weight: 600;
    color: #695A80;
}

.st-streak-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(255,152,0,0.08), rgba(255,152,0,0.03));
    border: 1.5px solid rgba(255,152,0,0.20);
    border-radius: 20px;
}

.st-streak-icon {
    font-size: 18px;
}

.st-streak-count {
    font-size: 18px;
    font-weight: 800;
    color: #e67e22;
}

.st-streak-label {
    font-size: 13px;
    font-weight: 600;
    color: #695A80;
}

.st-change-dd {
    display: block;
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #8B7BB8;
    cursor: pointer;
    text-decoration: underline;
}

/* Log card */
.st-log-card {
    max-width: 680px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61,47,80,0.10);
    padding: 28px;
}

.st-log-date-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid rgba(139,123,184,0.10);
}

.st-day-arrow {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(139,123,184,0.18);
    border-radius: 8px;
    background: #fff;
    color: #3D2F50;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-day-arrow:hover {
    border-color: #8B7BB8;
    background: #f5f2fa;
}

.st-day-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.st-log-date {
    font-size: 16px;
    font-weight: 700;
    color: #3D2F50;
}

/* Sections */
.st-section {
    margin-bottom: 24px;
}

.st-section-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
    margin-bottom: 10px;
}

/* Mood buttons */
.st-mood-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.st-mood-btn {
    width: 52px;
    height: 52px;
    border: 2px solid rgba(139,123,184,0.15);
    border-radius: 50%;
    background: #fff;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.st-mood-btn:hover {
    border-color: #8B7BB8;
    transform: scale(1.1);
}

.st-mood-btn.st-mood-active {
    border-color: #8B7BB8;
    background: linear-gradient(135deg, rgba(139,123,184,0.12), rgba(139,123,184,0.04));
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(139,123,184,0.20);
}

/* Filter row */
.st-filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.st-filter-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid rgba(139,123,184,0.18);
    border-radius: 8px;
    background: #fff;
    color: #695A80;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.st-filter-btn:hover {
    border-color: #8B7BB8;
}

.st-filter-btn.st-filter-active {
    background: linear-gradient(135deg, #8B7BB8, #a594d0);
    color: #fff;
    border-color: #8B7BB8;
}

/* Symptom grid */
.st-cat-group {
    margin-bottom: 16px;
}

.st-cat-group:last-child {
    margin-bottom: 0;
}

.st-cat-header {
    font-size: 16px;
    font-weight: 700;
    color: #695A80;
    padding: 8px 0 6px;
    border-bottom: 1px solid rgba(139,123,184,0.08);
    margin-bottom: 4px;
}

.st-symptom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139,123,184,0.05);
}

.st-symptom-row:last-child {
    border-bottom: none;
}

.st-symptom-row.st-sym-hidden {
    display: none;
}

.st-sym-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.st-sym-emoji {
    font-size: 18px;
    flex-shrink: 0;
}

.st-sym-name {
    font-size: 15px;
    font-weight: 400;
    color: #3D2F50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Severity buttons */
.st-severity-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.st-sev-btn {
    padding: 4px 8px;
    border: 1.5px solid rgba(139,123,184,0.12);
    border-radius: 6px;
    background: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #695A80;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 36px;
    text-align: center;
}

.st-sev-btn:hover {
    border-color: #8B7BB8;
}

.st-sev-btn.st-sev-active.st-sev-none {
    background: #f0edf5;
    border-color: #8B7BB8;
    color: #3D2F50;
}

.st-sev-btn.st-sev-active.st-sev-mild {
    background: #52b552;
    border-color: #52b552;
    color: #fff;
}

.st-sev-btn.st-sev-active.st-sev-mod {
    background: #e8a317;
    border-color: #e8a317;
    color: #fff;
}

.st-sev-btn.st-sev-active.st-sev-sev {
    background: #d9534f;
    border-color: #d9534f;
    color: #fff;
}

/* Notes */
.st-notes-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid rgba(139,123,184,0.18);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #3D2F50;
    resize: vertical;
}

.st-notes-input:focus {
    outline: none;
    border-color: #8B7BB8;
    box-shadow: 0 0 0 3px rgba(139,123,184,0.12);
}

/* Save confirm */
.st-save-confirm {
    text-align: center;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #52b552;
    animation: stFadeIn 0.3s ease;
}

@keyframes stFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section cards */
.st-section-card {
    max-width: 680px;
    margin: 0 auto 20px;
    padding: 24px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 14px;
    background: #fff;
}

.st-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 16px;
    text-transform: none;
    letter-spacing: 0;
}

/* Calendar */
.st-cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.st-cal-month-label {
    font-size: 16px;
    font-weight: 700;
    color: #3D2F50;
}

.st-cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.st-cal-header span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.st-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.st-cal-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #3D2F50;
    cursor: pointer;
    transition: transform 0.1s;
    position: relative;
}

.st-cal-cell:hover {
    transform: scale(1.1);
}

.st-cal-cell.st-cal-today {
    outline: 2px solid #8B7BB8;
    outline-offset: -2px;
}

.st-cal-cell.st-cal-selected {
    outline: 2px solid #7BC8B8;
    outline-offset: -2px;
}

.st-cal-cell.st-cal-empty {
    background: #f5f3f9;
    color: #bbb;
    cursor: default;
}

.st-cal-cell.st-cal-empty:hover {
    transform: none;
}

.st-cal-cell.st-cal-no-data {
    background: #f0edf5;
}

.st-cal-cell.st-cal-low {
    background: rgba(82,181,82,0.20);
}

.st-cal-cell.st-cal-med {
    background: rgba(232,163,23,0.25);
}

.st-cal-cell.st-cal-high {
    background: rgba(217,83,79,0.25);
}

.st-cal-cell.st-cal-mood-dot::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8B7BB8;
}

.st-cal-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.st-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #695A80;
}

.st-cal-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.st-cal-dot.st-cal-empty { background: #f0edf5; }
.st-cal-dot.st-cal-low { background: rgba(82,181,82,0.30); }
.st-cal-dot.st-cal-med { background: rgba(232,163,23,0.35); }
.st-cal-dot.st-cal-high { background: rgba(217,83,79,0.35); }

/* Weekly summary */
.st-weekly-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.st-empty-state {
    font-size: 15px;
    color: #695A80;
    text-align: center;
    padding: 12px 0;
    line-height: 1.5;
    margin: 0;
}

.st-vs-row {
    padding: 12px;
    border: 1px solid rgba(139,123,184,0.08);
    border-radius: 10px;
}

.st-vs-symptom {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
    margin-bottom: 8px;
}

.st-vs-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 6px;
}

.st-vs-bar-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.st-vs-label {
    font-size: 11px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.st-vs-bar {
    height: 8px;
    background: #f0edf5;
    border-radius: 4px;
    overflow: hidden;
}

.st-vs-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.st-vs-yours-fill {
    background: linear-gradient(135deg, #7BC8B8, #5aa898);
}

.st-vs-avg-fill {
    background: linear-gradient(135deg, #8B7BB8, #a594d0);
}

.st-vs-pct {
    font-size: 13px;
    font-weight: 700;
    color: #3D2F50;
}

.st-vs-insight {
    font-size: 14px;
    color: #695A80;
    line-height: 1.4;
}

/* Trends */
.st-trends-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.st-trend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139,123,184,0.06);
}

.st-trend-row:last-child {
    border-bottom: none;
}

.st-trend-name {
    font-size: 15px;
    font-weight: 600;
    color: #3D2F50;
    min-width: 120px;
}

.st-trend-sparkline {
    flex: 1;
}

.st-trend-sparkline svg {
    width: 100%;
    max-width: 140px;
    height: 30px;
}

.st-trend-sparkline polyline {
    fill: none;
    stroke: #8B7BB8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.st-trend-sparkline circle {
    fill: #8B7BB8;
}

.st-trend-arrow {
    font-size: 18px;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
}

.st-trend-arrow.up { color: #d9534f; }
.st-trend-arrow.down { color: #52b552; }
.st-trend-arrow.flat { color: #695A80; }

/* Doctor summary */
.st-doctor-desc {
    font-size: 16px;
    color: #695A80;
    margin: 0 0 16px;
    line-height: 1.5;
}

.st-doctor-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* CTA grid */
.st-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.st-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.st-cta-card:hover {
    text-decoration: none;
    border-color: #8B7BB8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(61,47,80,0.08);
}

.st-cta-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.st-cta-text {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
}

.st-cta-desc {
    font-size: 13px;
    color: #695A80;
    margin-top: 2px;
}

/* Disclaimer */
.st-disclaimer {
    max-width: 680px;
    margin: 16px auto 0;
    font-size: 13px;
    color: #695A80;
    text-align: center;
    line-height: 1.5;
}

/* Print summary */
.st-print-summary {
    display: none;
}

@media print {
    body * { visibility: hidden; }
    .st-print-summary,
    .st-print-summary * {
        visibility: visible;
    }
    .st-print-summary {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
        font-family: 'Nunito', sans-serif;
    }

    .st-print-header {
        text-align: center;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 2px solid #3D2F50;
    }

    .st-print-header h2 {
        font-size: 22px;
        color: #3D2F50;
        margin: 0 0 4px;
    }

    .st-print-header p {
        font-size: 14px;
        color: #695A80;
        margin: 0;
    }

    .st-print-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    .st-print-table th {
        text-align: left;
        font-size: 12px;
        font-weight: 700;
        color: #695A80;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 8px;
        border-bottom: 2px solid #ddd;
    }

    .st-print-table td {
        font-size: 14px;
        color: #3D2F50;
        padding: 6px 8px;
        border-bottom: 1px solid #eee;
    }

    .st-print-notes h3 {
        font-size: 16px;
        color: #3D2F50;
        margin: 16px 0 8px;
    }

    .st-print-notes p {
        font-size: 14px;
        color: #3D2F50;
        margin: 4px 0;
    }

    .st-print-footer {
        margin-top: 24px;
        padding-top: 12px;
        border-top: 1px solid #ddd;
        font-size: 11px;
        color: #999;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .st-setup-card {
        margin: -12px 12px 20px;
        padding: 24px 20px;
    }

    .st-date-selects {
        flex-wrap: wrap;
    }

    .st-date-selects .st-select {
        flex: 1;
        min-width: 0;
    }

    .st-dashboard {
        margin: -12px 12px 16px;
        padding: 16px 20px;
    }

    .st-log-card {
        margin: 0 12px 20px;
        padding: 20px;
    }

    .st-mood-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .st-symptom-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .st-severity-btns {
        width: 100%;
        justify-content: flex-end;
    }

    .st-sev-btn {
        flex: 1;
        padding: 6px 4px;
        font-size: 11px;
        min-width: 0;
    }

    .st-section-card {
        margin: 0 12px 16px;
        padding: 20px;
    }

    .st-cta-grid {
        grid-template-columns: 1fr;
    }

    .st-vs-bars {
        grid-template-columns: 1fr;
    }

    .st-doctor-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .st-trend-name {
        min-width: 80px;
        font-size: 14px;
    }

    .st-disclaimer {
        margin: 16px 12px 0;
    }

    .st-cal-cell {
        font-size: 11px;
    }
}
