/* Tab bar - gray background matching inactive tabs */
#dashboard-tabs .nav-tabs {
    background-color: #e5e7eb !important;
    padding: 8px !important;
    border-radius: 12px !important;
    border-bottom: none !important;
}

/* Wrapper for tabs - transparent */
.tabs-centered {
    background-color: transparent !important;
}

/* Remove white background from Bootstrap defaults */
#dashboard-tabs .nav-tabs .nav-item {
    background-color: transparent !important;
}

/* Inactive tabs - gray background, dark gray text */
#dashboard-tabs .nav-tabs .nav-link,
#dashboard-tabs .nav-tabs .nav-link:link,
#dashboard-tabs .nav-tabs .nav-link:visited,
#dashboard-tabs .nav-tabs .nav-link:hover,
#dashboard-tabs .nav-tabs .nav-link:focus,
#dashboard-tabs .nav-link,
#dashboard-tabs .nav-link:link,
#dashboard-tabs .nav-link:visited,
#dashboard-tabs .nav-link:hover,
#dashboard-tabs .nav-link:focus,
.nav-tabs .nav-link,
.nav-tabs .nav-link:link,
.nav-tabs .nav-link:visited,
#dashboard-tabs a,
#dashboard-tabs a:link,
#dashboard-tabs a:visited,
#dashboard-tabs a:hover,
#dashboard-tabs a:focus {
    color: #374151 !important;
    background-color: #e5e7eb !important;
    border: none !important;
    border-radius: 8px !important;
}

/* Active tab - WHITE background, dark text */
#dashboard-tabs .nav-tabs .nav-link.active,
#dashboard-tabs .nav-tabs .nav-link.active:link,
#dashboard-tabs .nav-tabs .nav-link.active:visited,
#dashboard-tabs .nav-tabs .nav-link.active:hover,
#dashboard-tabs .nav-tabs .nav-link.active:focus,
#dashboard-tabs .nav-link.active,
#dashboard-tabs .nav-link.active:link,
#dashboard-tabs .nav-link.active:visited,
#dashboard-tabs .nav-link.active:hover,
#dashboard-tabs .nav-link.active:focus,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:link,
.nav-tabs .nav-link.active:visited,
#dashboard-tabs a.active,
#dashboard-tabs a.active:link,
#dashboard-tabs a.active:visited,
#dashboard-tabs a.active:hover,
#dashboard-tabs a.active:focus {
    color: #111827 !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Nuclear option - override everything */
[id="dashboard-tabs"] * {
    color: inherit !important;
}

[id="dashboard-tabs"] .nav-item .nav-link {
    color: #374151 !important;
    background-color: #e5e7eb !important;
    border: none !important;
    border-radius: 8px !important;
}

[id="dashboard-tabs"] .nav-item .nav-link[aria-selected="true"],
[id="dashboard-tabs"] .nav-item .nav-link.active {
    color: #111827 !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Center align tabs */
.tabs-centered {
    text-align: center;
    width: 100%;
}

.tabs-centered .nav.nav-tabs {
    display: inline-flex !important;
    margin: 0 auto !important;
    float: none !important;
}

#dashboard-tabs .nav-tabs {
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
    width: 100% !important;
}

#dashboard-tabs ul.nav-tabs {
    justify-content: center !important;
}

.assessment-category-list .form-check {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #f8fafc;
}

.severity-buttons-container .severity-btn {
    min-width: 110px;
    padding: 10px 16px;
    font-size: 14px;
}

.suggestion-list,
.suggestion-list-heading {
    text-align: left;
}

.suggestion-list-heading {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 14px;
}

.suggestion-compact-card {
    padding: 12px 14px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.suggestion-compact-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
    text-align: left;
}

.suggestion-compact-title {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
    text-align: left;
}

.suggestion-impact-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.suggestion-connection-text {
    font-size: 14px;
    color: #374151 !important;
    line-height: 1.45;
    margin: 0 0 10px 0;
    text-align: left;
}

.suggestion-compact-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.45;
    margin-bottom: 4px;
    text-align: left;
}

.suggestion-read-more {
    display: inline-block;
    font-size: 13px;
    color: #2563eb !important;
    text-decoration: none;
    text-align: left;
}

.suggestion-compact-card .d-flex {
    justify-content: flex-start;
}

#weekly-suggestions,
#suggestions-card .card-body {
    text-align: left;
}

.suggestion-expand-body {
    margin-top: 4px;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 6px;
}

.suggestion-explanation,
.suggestion-full-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.weekly-focus-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.landing-page {
    position: relative;
    overflow: hidden;
    min-height: 100dvh;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at -10% -20%, #ffd6c9 0%, transparent 55%),
        radial-gradient(900px 500px at 110% 10%, #c9d4ff 0%, transparent 50%),
        radial-gradient(700px 400px at 70% 120%, #b8f1e1 0%, transparent 46%),
        linear-gradient(180deg, #fff7f2 0%, #f7f4ff 48%, #f3fbff 100%);
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
}

.landing-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
    opacity: 0.7;
}

.landing-blob-a {
    width: 220px;
    height: 220px;
    left: -70px;
    top: 80px;
    background: #ffb4a2;
    animation: landing-float 12s ease-in-out infinite;
}

.landing-blob-b {
    width: 180px;
    height: 180px;
    right: -50px;
    top: 40px;
    background: #9bb7ff;
    animation: landing-float 15s ease-in-out infinite reverse;
}

.landing-blob-c {
    width: 160px;
    height: 160px;
    right: 20%;
    bottom: 40px;
    background: #7ee0c8;
    animation: landing-float 18s ease-in-out infinite;
}

@keyframes landing-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.06); }
}

.landing-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 40px);
}

.landing-progress {
    margin-bottom: 18px;
}

.landing-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.landing-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7a59 0%, #7c5cff 100%);
    border-radius: 999px;
}

.landing-progress-label {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6b4f4f;
    font-weight: 600;
}

.landing-body {
    flex: 1;
}

.landing-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.landing-brand {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c2410c;
    margin: 0;
}

.landing-brand-mark {
    font-size: 12px;
    font-weight: 600;
    color: #4338ca;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 4px 10px;
}

.landing-title {
    font-size: 2rem;
    line-height: 1.12;
    font-weight: 800;
    color: #1c1917;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
}

.landing-line {
    display: block;
}

.landing-line-accent {
    background: linear-gradient(90deg, #ea580c, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-question-title {
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 800;
    color: #1c1917;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}

.landing-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c2410c;
    margin-bottom: 8px;
}

.landing-lead,
.landing-hint {
    font-size: 1.05rem;
    color: #57534e;
    line-height: 1.5;
    margin-bottom: 10px;
}

.landing-example {
    font-size: 0.95rem;
    color: #7c3aed;
    font-style: italic;
    line-height: 1.4;
    margin: 0 0 12px;
}

.landing-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.landing-chip {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #1e1b4b;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
}

.landing-input,
.landing-input.form-control,
.landing-input.form-select {
    font-size: 16px;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(28, 25, 23, 0.12);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.landing-input:focus,
.landing-input.form-control:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.landing-field-label {
    font-weight: 700;
    color: #44403c;
    margin-bottom: 6px;
}

.landing-number-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-suffix {
    font-size: 16px;
    color: #78716c;
    min-width: 2rem;
    font-weight: 700;
}

.landing-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.landing-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-choices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.landing-choice {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    padding: 12px 12px;
    color: #1c1917 !important;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(28, 25, 23, 0.12) !important;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.06);
}

.landing-choice-selected {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%) !important;
    border-color: #fb7185 !important;
    color: #9f1239 !important;
}

.landing-nav {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.landing-next {
    min-height: 54px;
    width: 100%;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    border: none;
    background: linear-gradient(90deg, #f43f5e 0%, #7c3aed 100%) !important;
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.landing-next:hover {
    filter: brightness(1.05);
}

.landing-skip,
.landing-skip-rest,
.landing-back,
.landing-signin {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #57534e !important;
}

.landing-signin {
    display: block;
    margin-top: 10px;
    color: #7c3aed !important;
}

.landing-error {
    min-height: 8px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .landing-title {
        font-size: 2.4rem;
    }

    .landing-question-title {
        font-size: 2rem;
    }

    .landing-card {
        min-height: auto;
        margin-top: 36px;
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 28px;
        box-shadow: 0 24px 60px rgba(76, 29, 149, 0.12);
        padding: 32px;
        backdrop-filter: blur(16px);
    }
}

.community-page {
    position: relative;
    overflow: hidden;
    min-height: calc(100dvh - 56px);
    background:
        radial-gradient(1200px 600px at -10% -20%, #ffd6c9 0%, transparent 55%),
        radial-gradient(900px 500px at 110% 10%, #c9d4ff 0%, transparent 50%),
        radial-gradient(700px 400px at 70% 120%, #b8f1e1 0%, transparent 46%),
        linear-gradient(180deg, #fff7f2 0%, #f7f4ff 48%, #f3fbff 100%);
    padding: 20px 0 calc(28px + env(safe-area-inset-bottom));
}

.community-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
}

.community-title {
    font-size: 2rem;
    line-height: 1.12;
    font-weight: 800;
    color: #1c1917;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}

.community-lead {
    max-width: 36rem;
    margin-bottom: 22px;
}

.community-stat {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(76, 29, 149, 0.08);
    padding: 16px 18px;
    backdrop-filter: blur(16px);
    height: 100%;
}

.community-stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1c1917;
    margin: 0 0 4px;
    letter-spacing: -0.03em;
}

.community-stat-label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #78716c;
}

.community-panel {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(76, 29, 149, 0.10);
    padding: 20px;
    backdrop-filter: blur(16px);
}

.community-panel-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c2410c;
    margin-bottom: 6px;
}

.community-panel-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1c1917;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.community-panel-subtitle {
    font-size: 0.95rem;
    color: #57534e;
    margin-bottom: 14px;
}

.community-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.community-chip,
.community-chip-static {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #1e1b4b;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
}

button.community-chip {
    appearance: none;
    font-family: inherit;
}

.community-chip-static {
    cursor: default;
    padding: 4px 10px;
    font-size: 12px;
}

.community-chip-selected,
.community-chip:hover {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #fb7185;
    color: #9f1239;
}

.community-story {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.community-story-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.community-story-title {
    font-weight: 800;
    color: #1c1917;
}

.community-story-meta,
.community-story-suggestion,
.community-story-feedback {
    font-size: 0.92rem;
    color: #44403c;
    margin-bottom: 8px;
}

.community-story-footer,
.community-muted,
.community-empty {
    color: #78716c;
    font-size: 0.85rem;
}

.community-empty {
    text-align: center;
    margin: 12px 0 0;
}

.community-read-more {
    color: #7c3aed !important;
    font-weight: 700;
    text-decoration: none !important;
}

.community-mini-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #9f1239;
    background: #fff1f2;
    border-radius: 999px;
    padding: 3px 8px;
}

.community-mini-chip-success {
    color: #065f46;
    background: #d1fae5;
}

.community-mini-chip-accent {
    color: #5b21b6;
    background: #ede9fe;
}

.community-suggestion-card {
    display: block;
    width: 100%;
    text-align: left;
    appearance: none;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.06);
}

.community-suggestion-card:hover {
    border-color: #fb7185;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
}

.community-suggestion-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.community-suggestion-name {
    font-size: 0.95rem;
    color: #1c1917;
}

.community-suggestion-text {
    font-size: 0.88rem;
    color: #44403c;
    line-height: 1.4;
    margin-bottom: 10px;
}

.community-suggestion-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #065f46;
    font-weight: 600;
}

.community-suggestion-cta {
    color: #7c3aed;
    font-size: 13px;
    font-weight: 800;
}

.community-insight-row {
    margin-bottom: 8px;
}

.community-modal .modal-content {
    border: none;
    border-radius: 24px;
    background: #fffaf7;
}

.community-modal-title {
    font-weight: 800;
    margin: 0 0 10px;
}

.community-modal-suggestion {
    margin: 12px 0;
    color: #44403c;
    line-height: 1.5;
}

.community-modal-story {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
}

.community-modal-close {
    min-height: 48px;
    border-radius: 999px;
    font-weight: 800;
    border: none;
    background: linear-gradient(90deg, #f43f5e 0%, #7c3aed 100%) !important;
}

.community-article-link {
    color: #7c3aed;
    font-weight: 700;
}

#community-tabs {
    text-align: center;
}

#community-tabs .nav-tabs {
    background: rgba(255, 255, 255, 0.55);
    padding: 6px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    margin-bottom: 8px;
}

#community-tabs .nav-link,
#community-tabs .nav-link:hover,
#community-tabs .nav-link:focus {
    color: #57534e !important;
    background: transparent !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 700;
    padding: 10px 18px;
}

#community-tabs .nav-link.active,
#community-tabs .nav-link.active:hover {
    color: #9f1239 !important;
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%) !important;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.12);
}

.community-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1c1917;
    letter-spacing: -0.03em;
    margin: 0 0 6px;
}

@media (min-width: 768px) {
    .community-title {
        font-size: 2.4rem;
    }

    .community-panel {
        padding: 24px;
    }

    .community-section-title {
        font-size: 1.7rem;
    }
}

.infographic-headline {
    font-size: 0.95rem;
    font-weight: 800;
    color: #9f1239;
    margin: 0 0 14px;
    line-height: 1.35;
}

.infographic-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.infographic-row,
.infographic-health-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.10);
    border-radius: 16px;
    padding: 10px 12px;
}

.infographic-row-lead {
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
    border-color: #fb7185;
}

.infographic-row-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.infographic-icon {
    font-size: 1.35rem;
    line-height: 1;
    width: 1.6rem;
    text-align: center;
}

.infographic-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.infographic-label {
    font-weight: 800;
    color: #1c1917;
    font-size: 0.92rem;
}

.infographic-count,
.infographic-note {
    color: #78716c;
    font-size: 0.78rem;
    font-weight: 600;
}

.infographic-pct {
    font-weight: 800;
    color: #7c3aed;
    font-size: 0.95rem;
}

.infographic-track {
    height: 10px;
    background: rgba(124, 58, 237, 0.10);
    border-radius: 999px;
    overflow: hidden;
}

.infographic-track-thin {
    height: 8px;
    flex: 1;
}

.infographic-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f43f5e 0%, #7c3aed 100%);
}

.infographic-fill-soft {
    background: linear-gradient(90deg, #fb7185 0%, #a78bfa 100%);
}

.infographic-health-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.infographic-meters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.infographic-meter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.infographic-cat {
    width: 72px;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #57534e;
}

.infographic-cat-score {
    width: 32px;
    text-align: right;
    font-size: 0.72rem;
    font-weight: 800;
    color: #7c3aed;
}

.infographic-note {
    margin: 12px 0 0;
}

