:root {
    --primary-orange: #FF8C00;
    --light-orange: #FFAD33;
    --accent-orange: #FF7043;
    --text-color: #333;
    --border-color: #ddd;
    --background-light: #f8f9fa;
    --background-dark: #e9ecef;
    --bot-message-bg: #e0f7fa;
    --user-message-bg: #ffe0b2;
}

.w-50 {
    width: 50%;
}
.text-primary-orange {
    color: var(--primary-orange) !important;
}
.bg-primary-blue {
    background-color: #253D79 !important;
}
.bg-light-orange-user {
    background-color: var(--user-message-bg) !important;
}
.border-orange {
    border-color: var(--light-orange) !important;
}
.roboto-family {
    font-family: 'Roboto', sans-serif;
}

#chat-container {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    max-height: 70vh;
    position: fixed;
    bottom: 180px;
    right: 60px;
    z-index: 1000;
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom right;
    transition: all 0.3s ease-in-out;
}

#chat-container.open {
    transform: scale(1);
    opacity: 1;
}

@media (max-width: 767.98px) {
    #chat-container {
        width: 81%;
        max-width: none;
        bottom: 140px !important;
        right: 15px;
        left: 2.5%;
        max-height: 70vh;
    }
    .chat-toggle-button {
        bottom: 95px !important;
        right: 15px !important;
        position: fixed;
        z-index: 1001;
        background-color: var(--primary-orange);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
    #chat-container.open + .chat-toggle-button {
        bottom: 95px !important;
        right: 15px;
    }
    .chat-bubble {
        font-size: 0.7em;
        bottom: 105%;
        right: 5px;
    }
    .chat-bubble::after {
        right: 7px;
    }
    #chat-container .option-button {
        font-size: 1.0rem !important;
    }
    #chat-container .chat-box {
        flex-grow: 1;
        padding: 15px;
        overflow-y: auto;
        overflow-x: hidden;
        background-color: #fefefe;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: 30vh;
    }

}


#chat-container .chat-header {
    background-color: #253D79 !important;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--light-orange);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    flex-shrink: 0;
}

#chat-container .chat-header h1 {
    margin: 0;
    font-size: 1.8em;
    color: white;
}

#chat-container .chat-header p {
    margin: 5px 0 0;
    font-size: 0.9em;
    opacity: 0.9;
    color: white;
}

#chat-container .chat-box {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fefefe;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 53vh;
}

#chat-container .message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

#chat-container .user-message {
    align-self: flex-end;
    background-color: var(--user-message-bg);
    color: var(--text-color);
    border-bottom-right-radius: 2px;
}

#chat-container .bot-message {
    align-self: flex-start;
    background-color: var(--bot-message-bg);
    color: var(--text-color);
    border-bottom-left-radius: 2px;
}

#chat-container .chat-input {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    flex-shrink: 0;
}

#chat-container .chat-input input[type="text"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

#chat-container .chat-input input[type="text"]:focus {
    border-color: var(--light-orange);
}

#chat-container .chat-input button {
    background-color: var(--primary-orange);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

#chat-container .chat-input button:hover {
    background-color: var(--accent-orange);
    transform: translateY(-1px);
}

#chat-container .chat-input button:active {
    transform: translateY(0);
    box-shadow: none;
}
@media (min-width: 1400px) {

    .chat-toggle-button {
        position: fixed;
        bottom: 80px !important;
        right: 10px !important;
        z-index: 1001;
        background-color: var(--primary-orange);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
}
.chat-toggle-button:hover {
    background-color: var(--accent-orange);
    transform: translateY(-2px);
}

.chat-toggle-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#chat-container .bot-message ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 0;
}
#chat-container .bot-message ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
}

#chat-container .bot-message ul li::before {
    content: '•';
    color: var(--primary-orange);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
    top: 0;
}

#chat-container .bot-message strong {
    font-weight: 700;
}

#chat-container .bot-message a {
    color: #007bff;
    text-decoration: none;
}

#chat-container .bot-message a:hover {
    text-decoration: underline;
}

#chat-container .options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    align-items: center;
    width: 100%;
    padding: 0 10px;
}

#chat-container .option-button {
    background: linear-gradient(135deg, #FF9933, #FF6600);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 90%;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

#chat-container .option-button:hover {
    background: linear-gradient(135deg, #FFA500, #FF7F00);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

#chat-container .option-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#chat-container .chat-box::-webkit-scrollbar {
    width: 8px;
}

#chat-container .chat-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#chat-container .chat-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#chat-container .chat-box::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

.chat-toggle-button.shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

.chat-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-bubble {
    position: absolute;
    bottom: 110%;
    right: 0;
    background-color: #fff;
    color: #333;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    font-size: 0.6em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(15px);
    font-family: 'Roboto', sans-serif;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #fff;
}

.chat-toggle-button.show-bubble .chat-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#chat-container .typing-indicator {
    align-self: flex-start;
    background-color: var(--bot-message-bg);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 18px;
    border-bottom-left-radius: 2px;
    max-width: 80%;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}
#chat-container .feedback-controls {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    justify-content: flex-end;
}

#chat-container .feedback-icon {
    cursor: pointer;
    font-size: 1.1em;
    color: #888;
    transition: color 0.2s ease;
}

#chat-container .feedback-icon.liked {
    color: #28a745;
}

#chat-container .feedback-icon.disliked {
    color: #dc3545;
}

#chat-container .feedback-icon:hover {
    color: #555;
}

#chat-container .bot-message + .feedback-controls {
    align-self: flex-start;
    margin-left: 15px;
}

.yes-no-container-minimal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.bot-question {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

.option-button-small {
    background: linear-gradient(135deg, #FF9933, #FF6600);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.option-button-small:hover {
    background: linear-gradient(135deg, #FFA500, #FF7F00);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) and (max-width: 1024px) {
    .chat-toggle-button {
        bottom: 95px !important;
        right: 15px !important;
        position: fixed;
        z-index: 1001;
        background-color: var(--primary-orange);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
    #chat-container.open + .chat-toggle-button {
        bottom: 95px !important;
        right: 15px;
    }
    .chat-bubble {
        font-size: 0.7em;
        bottom: 105%;
        right: 5px;
    }
    .chat-bubble::after {
        right: 7px;
    }
    #chat-container .option-button {
        font-size: 1.0rem !important
    }
    #chat-container {
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        position: fixed;
        bottom: 140px;
        right: 60px;
        z-index: 1000;
        transform: scale(0);
        opacity: 0;
        transform-origin: bottom right;
        transition: all 0.3s ease-in-out;
        max-height: 50vh;
    }
    #chat-container .chat-box {
        flex-grow: 1;
        padding: 15px;
        overflow-y: auto;
        overflow-x: hidden;
        background-color: #fefefe;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: 30vh;
    }
}
@media (min-width: 1025px) and (max-width: 1400px) {
    .chat-toggle-button {
        bottom: 95px !important;
        right: 15px !important;
        position: fixed;
        z-index: 1001;
        background-color: var(--primary-orange);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
    #chat-container.open + .chat-toggle-button {
        bottom: 95px !important;
        right: 15px;
    }
    .chat-bubble {
        font-size: 0.7em;
        bottom: 105%;
        right: 5px;
    }
    .chat-bubble::after {
        right: 7px;
    }
    #chat-container .option-button {
        font-size: 1.0rem !important
    }
    #chat-container {
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        position: fixed;
        bottom: 140px;
        right: 60px;
        z-index: 1000;
        transform: scale(0);
        opacity: 0;
        transform-origin: bottom right;
        transition: all 0.3s ease-in-out;
        max-height: 50vh;
    }
    #chat-container .chat-box {
        flex-grow: 1;
        padding: 15px;
        overflow-y: auto;
        overflow-x: hidden;
        background-color: #fefefe;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: 30vh;
    }
}