/* 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);
}
