/* _content/CloudiaResearch.Cmt.WebChatBot/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-hwkcyhw685] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-hwkcyhw685] {
    flex: 1;
}

.sidebar[b-hwkcyhw685] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-hwkcyhw685] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-hwkcyhw685]  a, .top-row[b-hwkcyhw685]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-hwkcyhw685]  a:hover, .top-row[b-hwkcyhw685]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-hwkcyhw685]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-hwkcyhw685] {
        justify-content: space-between;
    }

    .top-row[b-hwkcyhw685]  a, .top-row[b-hwkcyhw685]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-hwkcyhw685] {
        flex-direction: row;
    }

    .sidebar[b-hwkcyhw685] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-hwkcyhw685] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-hwkcyhw685]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-hwkcyhw685], article[b-hwkcyhw685] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-hwkcyhw685] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-hwkcyhw685] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/CloudiaResearch.Cmt.WebChatBot/Components/Layout/NavMenu.razor.rz.scp.css */
/* Variabili CSS per temi */
:root[b-2mf856ty1h] {
    /* Light theme */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --secondary-color: #10b981;
    --secondary-hover: #059669;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-chat: #ffffff;
    --bg-user-message: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --bg-bot-message: #f1f5f9;
    --bg-input: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-on-primary: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"][b-2mf856ty1h] {
    /* Dark theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-chat: #1e293b;
    --bg-user-message: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --bg-bot-message: #334155;
    --bg-input: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-on-primary: #ffffff;
    --border-color: #475569;
    --border-hover: #64748b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Reset e base */
*[b-2mf856ty1h] {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body[b-2mf856ty1h] {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

/* App container */
.app-container[b-2mf856ty1h] {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Header */
.chat-header[b-2mf856ty1h] {
    background: var(--bg-chat);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content[b-2mf856ty1h] {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section[b-2mf856ty1h] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon[b-2mf856ty1h] {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.logo-text h1[b-2mf856ty1h] {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.logo-text p[b-2mf856ty1h] {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.header-actions[b-2mf856ty1h] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-container[b-2mf856ty1h] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar[b-2mf856ty1h] {
    width: 120px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill[b-2mf856ty1h] {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
    border-radius: 3px;
}

.progress-text[b-2mf856ty1h] {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 40px;
}

.theme-toggle[b-2mf856ty1h] {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

    .theme-toggle:hover[b-2mf856ty1h] {
        background: var(--border-hover);
        transform: scale(1.05);
    }

/* Chat container */
.chat-container[b-2mf856ty1h] {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 2rem auto;
    background: var(--bg-chat);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

/* Messages area */
.messages-container[b-2mf856ty1h] {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-secondary);
    min-height: 400px;
    max-height: 600px;
    scroll-behavior: smooth;
}

    .messages-container[b-2mf856ty1h]::-webkit-scrollbar {
        width: 6px;
    }

    .messages-container[b-2mf856ty1h]::-webkit-scrollbar-track {
        background: transparent;
    }

    .messages-container[b-2mf856ty1h]::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 3px;
    }

        .messages-container[b-2mf856ty1h]::-webkit-scrollbar-thumb:hover {
            background: var(--border-hover);
        }

.messages-wrapper[b-2mf856ty1h] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Message groups */
.message-group[b-2mf856ty1h] {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 80%;
}

    .message-group.user[b-2mf856ty1h] {
        align-self: flex-end;
        flex-direction: row-reverse;
    }

    .message-group.bot[b-2mf856ty1h] {
        align-self: flex-start;
    }

/* Avatars */
.avatar[b-2mf856ty1h] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.bot-avatar[b-2mf856ty1h] {
    background: linear-gradient(135deg, #0a90ec 0%, #060329 100%);
}

.user-avatar[b-2mf856ty1h] {
    background: var(--secondary-color);
    color: white;
}

/* Messages */
.message[b-2mf856ty1h] {
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    max-width: 100%;
    word-wrap: break-word;
    animation: messageSlideIn-b-2mf856ty1h 0.3s ease-out;
    box-shadow: var(--shadow-sm);
}

    .message.bot[b-2mf856ty1h] {
        background: var(--bg-bot-message);
        color: var(--text-primary);
        border-bottom-left-radius: 6px;
        border: 1px solid var(--border-color);
    }

    .message.user[b-2mf856ty1h] {
        background: var(--bg-user-message);
        color: var(--text-on-primary);
        border-bottom-right-radius: 6px;
    }

.message-content[b-2mf856ty1h] {
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-time[b-2mf856ty1h] {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    text-align: right;
}

.message.bot .message-time[b-2mf856ty1h] {
    text-align: left;
}

/* Typing indicator */
.typing-indicator[b-2mf856ty1h] {
    padding: 1rem;
    background: var(--bg-bot-message);
    border: 1px solid var(--border-color);
}

.typing-dots[b-2mf856ty1h] {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

    .typing-dots span[b-2mf856ty1h] {
        width: 6px;
        height: 6px;
        background: var(--text-secondary);
        border-radius: 50%;
        animation: typing-b-2mf856ty1h 1.4s infinite;
    }

        .typing-dots span:nth-child(2)[b-2mf856ty1h] {
            animation-delay: 0.2s;
        }

        .typing-dots span:nth-child(3)[b-2mf856ty1h] {
            animation-delay: 0.4s;
        }

/* Input area */
.input-container[b-2mf856ty1h] {
    padding: 1.5rem;
    background: var(--bg-chat);
    border-top: 1px solid var(--border-color);
}

.input-wrapper[b-2mf856ty1h] {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

    .input-wrapper:focus-within[b-2mf856ty1h] {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

.chat-input[b-2mf856ty1h] {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    resize: none;
    min-height: 24px;
    max-height: 120px;
    padding: 0;
}

    .chat-input[b-2mf856ty1h]::placeholder {
        color: var(--text-tertiary);
    }

    .chat-input:disabled[b-2mf856ty1h] {
        opacity: 0.6;
        cursor: not-allowed;
    }

.input-actions[b-2mf856ty1h] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.char-counter[b-2mf856ty1h] {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    min-width: 50px;
    text-align: right;
}

.send-button[b-2mf856ty1h] {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

    .send-button:hover:not(.disabled)[b-2mf856ty1h] {
        background: var(--primary-hover);
        transform: scale(1.05);
        box-shadow: var(--shadow-md);
    }

    .send-button.disabled[b-2mf856ty1h] {
        background: var(--text-tertiary);
        cursor: not-allowed;
        opacity: 0.6;
    }

/* Completion actions */
.completion-actions[b-2mf856ty1h] {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: center;
}

.action-button[b-2mf856ty1h] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

    .action-button.restart[b-2mf856ty1h] {
        background: var(--secondary-color);
        color: white;
    }

        .action-button.restart:hover[b-2mf856ty1h] {
            background: var(--secondary-hover);
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

    .action-button.download[b-2mf856ty1h] {
        background: var(--accent-color);
        color: white;
    }

        .action-button.download:hover[b-2mf856ty1h] {
            background: var(--accent-hover);
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

/* Help button */
.help-button[b-2mf856ty1h] {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
    z-index: 1000;
}

    .help-button:hover[b-2mf856ty1h] {
        background: var(--primary-hover);
        transform: scale(1.1);
        box-shadow: var(--shadow-xl);
    }

/* Animations */
@keyframes messageSlideIn-b-2mf856ty1h {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing-b-2mf856ty1h {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn-b-2mf856ty1h {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-b-2mf856ty1h {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .app-container[b-2mf856ty1h] {
        min-height: 100vh;
    }



    .logo-text h1[b-2mf856ty1h] {
        font-size: 1.25rem;
    }

    .progress-container[b-2mf856ty1h] {
        display: none;
    }

    .chat-container[b-2mf856ty1h] {
        margin: 1rem;
        border-radius: 16px;
        height: calc(100vh - 2rem);
    }

    .messages-container[b-2mf856ty1h] {
        max-height: none;
        flex: 1;
    }

    .message-group[b-2mf856ty1h] {
        max-width: 90%;
    }

    .input-container[b-2mf856ty1h] {
        padding: 1rem;
    }

    .completion-actions[b-2mf856ty1h] {
        flex-direction: column;
        align-items: stretch;
    }

    .help-button[b-2mf856ty1h] {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .header-content[b-2mf856ty1h] {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .header-actions[b-2mf856ty1h] {
        align-self: flex-end;
    }

    .logo-section[b-2mf856ty1h] {
        gap: 0.5rem;
    }

    .logo-icon[b-2mf856ty1h] {
        width: 40px;
        height: 40px;
    }

    .logo-text h1[b-2mf856ty1h] {
        font-size: 1.125rem;
    }

    .message-group[b-2mf856ty1h] {
        max-width: 95%;
    }

    .message[b-2mf856ty1h] {
        font-size: 0.9rem;
    }

    .input-wrapper[b-2mf856ty1h] {
        padding: 0.5rem 0.75rem;
    }

    .chat-input[b-2mf856ty1h] {
        font-size: 0.9rem;
    }

    .send-button[b-2mf856ty1h] {
        width: 36px;
        height: 36px;
    }
}

/* Accessibilit� */
@media (prefers-reduced-motion: reduce) {
    *[b-2mf856ty1h] {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states per accessibilit� */
.theme-toggle:focus[b-2mf856ty1h],
.send-button:focus[b-2mf856ty1h],
.action-button:focus[b-2mf856ty1h],
.help-button:focus[b-2mf856ty1h] {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.chat-input:focus[b-2mf856ty1h] {
    outline: none; /* Gi� gestito dal wrapper */
}

/* Stati di caricamento */
.loading[b-2mf856ty1h] {
    animation: pulse-b-2mf856ty1h 1.5s infinite;
}

/* Miglioramenti per stampa */
@media print {
    .chat-header[b-2mf856ty1h],
    .input-container[b-2mf856ty1h],
    .help-button[b-2mf856ty1h],
    .theme-toggle[b-2mf856ty1h] {
        display: none;
    }

    .chat-container[b-2mf856ty1h] {
        box-shadow: none;
        border: 1px solid #000;
        margin: 0;
        border-radius: 0;
    }

    .messages-container[b-2mf856ty1h] {
        max-height: none;
        overflow: visible;
        background: white;
    }

    .message[b-2mf856ty1h] {
        break-inside: avoid;
        box-shadow: none;
    }
}
/* _content/CloudiaResearch.Cmt.WebChatBot/Components/Pages/Survey.razor.rz.scp.css */
