/* Custom styles for the dental practice revenue calculator */

/* Enhance form elements */
.form-check-input:checked {
    background-color: var(--bs-info);
    border-color: var(--bs-info);
}

/* Card styling */
.card {
    border-radius: 0.5rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Home page specific styles */
.bg-dark.text-white {
    background-color: rgba(26, 27, 30, 0.95) !important;
}

.fa-li {
    color: var(--bs-info);
}

.accordion-button:not(.collapsed) {
    color: var(--bs-info);
    background-color: rgba(13, 202, 240, 0.1);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
}

/* Custom icons with background */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #fff;
    border-radius: 0.5rem;
    background-color: var(--bs-primary);
}

/* Progress bar customization */
.progress {
    border-radius: 1rem;
    overflow: hidden;
}

/* Print styles */
@media print {
    .btn, footer, .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none !important;
    }
    
    .text-muted {
        color: #666 !important;
    }
}

/* Icon customization */
.fa-teeth, .fa-spa, .fa-star, .fa-robot {
    padding: 0.5rem;
    border-radius: 50%;
}

.fa-teeth {
    background-color: rgba(54, 162, 235, 0.2);
    color: rgba(54, 162, 235, 1);
}

.fa-spa {
    background-color: rgba(255, 99, 132, 0.2);
    color: rgba(255, 99, 132, 1);
}

.fa-star {
    background-color: rgba(75, 192, 192, 0.2);
    color: rgba(75, 192, 192, 1);
}

.fa-robot {
    background-color: rgba(13, 202, 240, 0.2);
    color: rgba(13, 202, 240, 1);
}

/* Results highlights */
.results-highlight {
    font-weight: bold;
    color: var(--bs-info);
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card, .alert {
    animation: fadeIn 0.5s ease-in-out;
}

/* Ensure proper spacing in form groups */
.form-check {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-6 {
        font-size: 1.5rem;
    }
}

/* Chatbot styling */
.chat-container {
    scroll-behavior: smooth;
    transition: all 0.3s ease;
}

.chat-message {
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.chat-bubble {
    max-width: 80%;
    word-wrap: break-word;
    white-space: pre-line;
}

.user-message .chat-bubble {
    background-color: rgba(var(--bs-primary-rgb), 0.2);
}

.assistant-message .chat-bubble {
    background-color: rgba(var(--bs-info-rgb), 0.2);
}

.chat-content {
    white-space: pre-line;
    line-height: 1.5;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(var(--bs-dark-rgb), 0.4);
}

/* Stile migliorato per l'indicatore di digitazione */
.typing-indicator-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.typing-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    min-height: 40px;
    min-width: 60px;
    background-color: var(--bs-secondary-bg-subtle);
    border-radius: 18px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    background-color: rgba(13, 202, 240, 1); /* Colore azzurro dell'icona robot */
    animation: pulse 1.5s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Suggested questions */
.suggested-question {
    transition: all 0.2s ease;
}

.suggested-question:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

/* Active nav item */
.nav-item .nav-link.active {
    font-weight: 600;
    color: var(--bs-info) !important;
}

/* Marketing content styling */
#generatedContent {
    white-space: pre-wrap;
    font-family: inherit;
}
