/* Chat page specific styles */
.status-message .status-row {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.status-message .status-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Animated thinking dots */
.thinking-dots {
    display: inline-flex;
    gap: 2px;
}

.thinking-dots .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #222d6e;
    border-radius: 50%;
    animation: dot-bounce 1.4s ease-in-out infinite;
}

.thinking-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

.input-area {
    width: 100%;
}

.chat-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    resize: none;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.chat-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.controls-area {
    width: 100%;
}

.message-action-btn i.text-primary {
    color: var(--primary-color) !important;
}

/* Modern search toggle button */
.search-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.search-toggle-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px) scale(1.02);
}

.search-toggle-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: var(--shadow-soft);
}

.search-toggle-btn.disabled {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    box-shadow: none;
    cursor: default;
    opacity: 0.7;
}

.search-toggle-btn.disabled:hover {
    background: linear-gradient(135deg, rgba(107, 126, 232, 0.1) 0%, rgba(107, 126, 232, 0.15) 100%);
    color: var(--text-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.search-toggle-btn #webSearchIcon {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.search-toggle-btn:hover #webSearchIcon {
    transform: scale(1.1);
}

.search-label {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Modern prompt button */
.prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--text-secondary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.prompt-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--deep-navy) 100%);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px) scale(1.02);
    color: white;
}

.prompt-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: var(--shadow-soft);
}

.prompt-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.prompt-btn:hover i {
    transform: scale(1.1) rotate(90deg);
}

.prompt-label {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Modern send button */
.send-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 100px;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: var(--shadow-strong);
    transform: translateY(-3px) scale(1.05);
}

.send-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.send-btn:disabled {
    background: linear-gradient(135deg, #E9ECEF 0%, #DEE2E6 100%);
    color: #6C757D;
    box-shadow: var(--shadow-soft);
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.send-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.send-btn:hover:not(:disabled) i {
    transform: translateX(2px);
}

.send-label {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Example questions layout */
.example-questions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.question-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto 16px auto;
}

.example-prompt-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    white-space: nowrap;
}

.example-prompt-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--deep-navy);
    border-color: rgba(107, 126, 232, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(107, 126, 232, 0.15);
    backdrop-filter: blur(16px);
}

.example-prompt-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: var(--shadow-soft);
}

/* Prototype Warning Styles */
.prototype-warning {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 18px 24px !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.prototype-warning::after {
    content: 'BETA' !important;
    position: absolute !important;
    top: -6px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #2E4BC6 0%, #3B5CD1 100%) !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    letter-spacing: 0.5px !important;
}

.prototype-warning-icon {
    color: #64748b !important;
    font-size: 1.2rem !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.prototype-warning-title {
    color: #334155 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.prototype-warning-text {
    color: #475569 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

.prototype-warning-email {
    color: #2E4BC6 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid transparent !important;
}

.prototype-warning-email:hover {
    color: #3B5CD1 !important;
    border-bottom-color: #3B5CD1 !important;
    text-decoration: none !important;
}

/* Demo feedback buttons in prototype warning */
.demo-feedback-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4)) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #495057 !important;
    position: relative;
}

.demo-feedback-btn:hover {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6)) !important;
}

.demo-feedback-btn .bi {
    color: #495057 !important;
}

/* Demo active states */
.demo-feedback-btn.demo-active-positive {
    background: linear-gradient(135deg, #2D5A3D 0%, #4A7C59 100%) !important;
    color: white !important;
    border-color: #2D5A3D !important;
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3) !important;
}

.demo-feedback-btn.demo-active-positive .bi {
    color: white !important;
}

.demo-feedback-btn.demo-active-positive::after {
    content: "✓";
    position: absolute;
    top: -4px;
    right: -4px;
    background: #2D5A3D;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(45, 90, 61, 0.3);
    border: 2px solid white;
}

.demo-feedback-btn.demo-active-negative {
    background: linear-gradient(135deg, #800040 0%, #99004D 100%) !important;
    color: white !important;
    border-color: #800040 !important;
    box-shadow: 0 4px 12px rgba(128, 0, 64, 0.3) !important;
}

.demo-feedback-btn.demo-active-negative .bi {
    color: white !important;
}

.demo-feedback-btn.demo-active-negative::after {
    content: "✓";
    position: absolute;
    top: -4px;
    right: -4px;
    background: #800040;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(128, 0, 64, 0.3);
    border: 2px solid white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .question-row {
        flex-direction: column;
        align-items: center;
    }

    .example-prompt-btn {
        font-size: 0.85rem;
        padding: 12px 16px;
        max-width: 320px;
        width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
}

/* Tablet and larger screens keep single-line text */
@media (min-width: 769px) {
    .example-prompt-btn {
        white-space: nowrap;
    }
}