/* Soft UI / semi-stylized wireframe styles */
:root {
    --bg: #f6f8fb;
    --card: #ffffff;
    --muted: #6b7280;
    --accent: #3b82f6;
    --soft-shadow: 0 6px 18px rgba(59, 130, 246, 0.06),
        0 2px 6px rgba(15, 23, 42, 0.04);
    --soft-border-radius: 14px;
}
html,
body {
    height: 100%;
    background: var(--bg);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial;
}
.app-shell {
    max-width: 420px;
    margin: 18px auto 90px;
}
.card-soft {
    background: var(--card);
    border-radius: var(--soft-border-radius);
    box-shadow: var(--soft-shadow);
}
.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    width: 100%;
    max-width: 420px;
    padding: 8px 14px;
}
.nav-btn {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.95)
    );
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.06);
}
.soft-pill {
    background: #eef6ff;
    color: var(--accent);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
}
.muted {
    color: var(--muted);
    font-size: 13px;
}
.tiny {
    font-size: 12px;
    color: var(--muted);
}
.progress-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    box-shadow: inset 0 -6px 12px rgba(59, 130, 246, 0.03);
}
.floating-action {
    position: fixed;
    right: 24px;
    bottom: 86px;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.18);
}
/* Simple responsive helpers */
.screen {
    display: none;
}
.screen.active {
    display: block;
}
/* Onboarding styles */
.onboard-step {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 18px;
}
.chip {
    display: inline-block;
    padding: 6px 10px;
    background: #fff;
    border-radius: 999px;
    margin: 6px;
    border: 1px solid #eef3ff;
}
/* Chat styles */
.chat-window {
    height: 58vh;
    overflow: auto;
    padding: 12px;
}
.msg {
    max-width: 78%;
    padding: 10px 12px;
    border-radius: 12px;
    margin: 0;
}
.msg.user {
    background: linear-gradient(180deg, #dbeafe, #bfdbfe);
    color: #062f4f;
}
.msg.ai {
    background: #fff;
    border: 1px solid #eef3ff;
    color: #0f172a;
}
/* Minor tweaks */
.small-graph {
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    display: flex;
    align-items: center;
    padding: 10px;
}

.bottom-nav a{
    text-decoration: none;
}
.bottom-nav a i.bi{
    color: #333;
}

.listefiwindow-container *,
.listefiwindow-container *::after,
.listefiwindow-container *::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.listefiwindow-container {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.listefiwindow-container[data-listefiwindow-active="true"] {
    opacity: 1;
    visibility: visible;
}
.listefiwindow-card {
    margin-top: 40px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0px 0px 25px -5px #333;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 0.2rem;
}
.listefiwindow-header,
.listefiwindow-footer,
.listefiwindow-body {
    background-color: #fff;
}
.listefiwindow-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 1rem;
    border-bottom: 1px solid #eee;
}
.listefiwindow-close {
    padding: 1rem;
    color: #333;
    font-weight: bold;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: 0.3s all;
    border-radius: 4px;
    line-height: 0;
}
.listefiwindow-close:hover,
.listefiwindow-close:focus {
    color: #7c4dff;
    background-color: #f3f3f3;
}
.listefiwindow-close:active {
    color: #7c4dff;
    transform: scale(0.95);
}
.listefiwindow-close:focus {
    outline: 1px solid #00bcd4;
    outline-offset: 2px;
}
.listefiwindow-cross {
    min-width: 1.5rem;
    min-height: 1.5rem;
}
.listefiwindow-body {
    padding: 1rem;
    color: #333;
    font-size: 18px;
    line-height: 1.5;
}
.listefiwindow-header h4 {
    color: #333;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 0 0 1rem;
}
.listefiwindow-footer {
    text-align: right;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}
.listefiwindow-btn {
    padding: 1rem 1.2rem;
    background-color: transparent;
    border: none;
    color: #9c27b0;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s all;
}
.listefiwindow-btn:hover,
.listefiwindow-btn:focus {
    color: #7c4dff;
    background-color: #f3f3f3;
}
.listefiwindow-btn:active {
    color: #7c4dff;
    transform: scale(0.95);
}
.listefiwindow-btn:focus {
    outline: 1px solid #00bcd4;
    outline-offset: 2px;
}

/* Chat enhancements */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--muted);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* Active navigation styling */
.active-nav {
    color: var(--accent) !important;
}

.active-nav i {
    color: var(--accent) !important;
}

/* Chip button styling */
.chip {
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    background: #f0f7ff !important;
    border-color: var(--accent);
}

.questionnarie-save{
    bottom: 100px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

@keyframes softGlow {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.15); }
    50% { box-shadow: 0 0 0 10px rgba(0,0,0,0.05); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.15); }
}

.station-glow {
    animation: softGlow 8s ease-in-out infinite;
}

.map-line {
    height: 9px;
    background: #e9ecef;
    overflow: hidden;
    z-index: 0;
    margin-top: -0.7rem;
}

.map-line::after {
    content: '➜ ➜ ➜';
    position: absolute;
    left: 100%;
    top: -6px;
    white-space: nowrap;
    color: rgba(0,0,0,0.35);
    font-size: 14px;
    animation: arrowsMove 10s linear infinite;
    transform: rotate(180deg);
}

@keyframes arrowsMove {
    0% { left: 100%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: -50%; opacity: 0; }
}


.app {
    max-width: 450px;
    margin: auto;
    padding: 16px;
}

.card-soft {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.04), 0 2px 6px rgba(15,23,42,0.02);
}

.option {
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    color: #0f172a;
    opacity: 0.9;
}

.option.active {
    opacity: 1;
    border-color: #10b981;
    background: #ecfdf5;
    color: #065f46;
}

.chip {
    padding: 6px 10px;
    border-radius: 20px;
    background: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.9;
    border: 1px solid #eef3ff;
    color: #0f172a;
}

.chip.active {
    opacity: 1;
    background: #fef3c7;
    color: #92400e;
}

/* Stepper styles */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #e6e9ef;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e6e9ef;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    font-size: 14px;
}

.step.active .step-circle {
    background: #10b981;
    color: white;
}

.step.completed .step-circle {
    background: #059669;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #64748b;
}

.step.active .step-label {
    color: #0f172a;
    font-weight: 600;
}

/* Step content */
.step-content {
    max-height: 60vh;
    overflow-y: auto;
}

/* Form controls */
.form-label-sm {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #475569;
}

.metric-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 8px;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    background: #f8fafc;
}

.metric-stepper button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: white;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.metric-stepper button:hover {
    border-color: #10b981;
    color: #10b981;
    background: #ecfdf5;
}

.metric-stepper button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.metric-stepper button:disabled:hover {
    border-color: #cbd5e1;
    color: #475569;
    background: white;
}

.metric-value {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #0f172a;
}

/* Star rating */
.star-rating {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.star {
    font-size: 28px;
    cursor: pointer;
    color: #e6e9ef;
    transition: color 0.2s;
}

.star.filled {
    color: #fbbf24;
}

.star:hover {
    color: #fbbf24;
}
