/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* Chat Mode Styles */
.chat-messages {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-height: 0;
    padding: 15px 20px;
    overflow-y: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
    position: relative;
}

/* When quick-actions-page is active, override flex to show it full-screen */
.chat-messages.quick-actions-active {
    padding: 0;
    gap: 0;
}

.chat-messages.quick-actions-active .message {
    display: none;
}

/* Message Styles */
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
    -webkit-animation: messageAppear 0.3s ease;
    animation: messageAppear 0.3s ease;
}

.user-message {
    -ms-flex-item-align: end;
    align-self: flex-end;
    background: -o-linear-gradient(315deg, var(--primary-blue), var(--secondary-blue));
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border-bottom-right-radius: 4px;
    font-size: 18px;
}

.bot-message {
    -ms-flex-item-align: start;
    align-self: flex-start;
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 18px;
}

.message-content {
    margin-bottom: 5px;
    font-size: 18px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: right;
}

/* Suggestions - Separated into info box and action buttons */
.suggestions-info-box {
    margin-top: 12px;
    padding: 12px;
    background: -o-linear-gradient(315deg, #f8f9fa 0%, #eff1f5 100%);
    background: linear-gradient(135deg, #f8f9fa 0%, #eff1f5 100%);
    border-left: 4px solid var(--secondary-blue);
    border-radius: 6px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.suggestions {
    margin-top: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    background: none;
    border: 1px solid var(--secondary-blue);
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: var(--secondary-blue);
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.suggestion-btn:hover {
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

/* Info-type suggestions (non-clickable, read-only) */
.suggestion-info {
    display: block;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.72rem;
    color: #666;
    cursor: default;
    line-height: 1.5;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 200px;
    max-width: 100%;
    word-break: break-word;
}

.suggestion-info:hover {
    background: white;
    border-color: #bbb;
}

/* Quick action suggestions - Info container */
.quick-suggestions-info {
    margin-top: 10px;
    padding: 12px;
    background: #f0f4ff;
    border-left: 3px solid var(--secondary-blue);
    border-radius: 4px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-suggestion-info {
    background: white;
    border: 1px solid #d0d8f0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.7rem;
    color: #555;
    line-height: 1.4;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 150px;
}

/* Chat Input Area */
.chat-input-container {
    padding: 16px;
    border-top: 1px solid #e9ecef;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: white;
}

.chat-input {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    height: 52px !important;
}


.chat-input:focus {
    border-color: #4361ee;
    -webkit-box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.send-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.send-btn:hover {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.send-btn:active {
    -webkit-transform: scale(0.95);
    -ms-transform: scale(0.95);
    transform: scale(0.95);
}

#sendBtn.not-allowed {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    /* disables all mouse interactions */
}