/* ==========================================================
   DAMS - AI Chatbox Styles
   ========================================================== */

:root {
    /* Brand Colors extracted from logo */
    --ao-red: #C12026;                /* The deep red in the cross and dot */
    --ao-dark-charcoal: #58595B;      /* The dark gray used for "APEX" */
    --ao-silver-gray: #A7A9AC;        /* The light gray used for "medical group" */
    
    /* Backgrounds and UI Elements */
    --navigation-expanded-background-color: rgba(45, 45, 45, 0.95);
    --ao-white: #ffffff;
    
    --page-header-top-background: #414042;
    --page-header-top-forecolor: #ffffff;
    
    --page-header-bottom-background: #58595B; /* Matches "APEX" text */
    --page-header-bottom-forecolor: #ffffff;
    
    --ao-faq-background: #000000;
    --ao-black: #000000;
    --ao-light-gray: #A7A9AC;         /* Matches "medical group" text */
    --ao-input-gray: #707070;
    
    --ao-row-background-dark-gray: #414042;
    --ao-row-background-black: #000000;
}

.btechai-ticket-link:after { 
	display:none !improtant;
}

/* ===== Floating Chat Button ===== */
.opera-chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e60023;
    color: #fff;
    padding: 14px;
    line-height: 1;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.opera-chatbot-toggle:hover {
    background-color: #cc001f;
    transform: scale(1.05);
}

/* Hide chat button when panel is open (handled by JS, but CSS fallback) */
.opera-chatbot-container.active + .opera-chatbot-toggle {
    display: none !important;
}

/* ===== Chat Panel ===== */
.opera-chatbot-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 500px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

.opera-chatbot-container.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* ===== Chat Body ===== */
.opera-chatbot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* Chatbot element (remote script injects content here) */
.dams-opera-chatbot {
    flex: 1;
    border: none;
    width: 100%;
    height: 100%;
}

/* ===== Floating Close Button ===== */
.opera-chatbot-close {
    position: fixed;
    top: 10px;
    right: 10px;
    line-height: 1;
    background-color: #e60023;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000001;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
}

.opera-chatbot-close:hover {
    background-color: #cc001f;
    transform: scale(1.1);
}

/* ===== Input/Text Color Fixes for Chatbot Content ===== */
.dams-opera-chatbot input {
    color: black !important;
}

.dams-opera-chatbot input::placeholder {
    color: gray !important;
}

.dams-opera-chatbot .text-gray {
    color: gray;
}

/* ===== General Safety Fixes ===== */
body, html {
    overflow-x: visible !important;
}


/* ===== Inline "Please wait..." Placeholder ===== */
.opera-chatbot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    font-size: 16px;
    height: 100%;
    width: 100%;
    font-style: italic;
}


