* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* SCG Fonts*/
@font-face {
    font-family: 'SCG';
    src: url('../font/SCG-Reg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SCG';
    src: url('../font/SCG-Bol.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SCG';
    src: url('../font/SCG-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'SCG';
    src: url('../font/SCG-Lig.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: 'SCG', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SCG', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.container {
    display: flex;
    height: 100vh;
    overflow: hidden; 
}
/* Left Sidebar */
.sidebar {
    width: 240px;
    min-width: 240px;  
    max-width: 240px;  
    background-color:  #333333;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 0;
    flex-shrink: 0;  
}
.logo {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid #444;
    height: 80px;
}
.logo img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
}
.nav-button {
    padding: 15px 20px;
    background: none;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-family: 'SCG', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-button:hover {
    background-color: #444;
}
.nav-button.active {
    background-color: #EC1C24;
}
.nav-button i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}
/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.header {
    background-color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid #ddd;
    gap: 15px;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 12px;
}
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 11px;
}
.logout-btn {
    background: none;
    border: none;
    color: #EC1C24;
    cursor: pointer;
    font-size: 11px;
    text-decoration: underline;
}
.content-area {
    flex: 1;
    padding: 8px;  
    overflow-y: auto;
}
/* Employee Search Page */
.employee-search-page {
    display: block;
}
.employee-search-page h1 {
    font-size: 25px;
    margin-bottom: 30px;
    color: #333;
}
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'SCG', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none;
    margin-top: -25px;
}
.search-input:focus {
    border-color: #EC1C24;
}
.search-btn {
    background-color: #EC1C24;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-btn:hover {
    background-color: #d91920;
}
.search-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.search-results {
    background: white;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    color: #666;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -18px;
    font-size: 14px;
}
/* HR Assistant Page */
.hr-assistant-page {
    display: none;
    flex-direction: column;
    height: 100%;
}
.chat-header {
    display: flex;
    justify-content: space-between;   
    align-items: center;
    gap: 10px;                      
    margin-bottom: 4px;
    margin-top: -15;                   
    padding-top: 0;
    padding-bottom: 0;
}
/* FAQ Container */
.faq-container {
  display: flex;
  flex-direction: row;        
  align-items: center;        
  gap: 10px;                 
  margin-top: 0;             
  margin-bottom: 0;
}
.faq-label {
  display: none;  
}
.faq-btn {
  background-color: #EC1C24;
  color: #fff;
  border: 2px solid #EC1C24;
  padding: 8px 20px;
  border-radius: 20px;              
  cursor: pointer;
  font-size: 12px;
  font-family: 'SCG', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;              
  height: 40px;                   
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.faq-btn:hover {
  background-color: #d71c21;
  border-color: #d71c21;
}

.faq-btn::after {
  content: '▼';
  font-size: 10px;
  transition: transform 0.3s ease;
}

.faq-btn.open::after {
  transform: rotate(180deg);
}

/* Dropdown Wrapper */
.faq-dropdown {
  position: relative;
}

/* Horizontal Flyout Menu */
.faq-menu {
  position: absolute;
  top: 110%;
  left: 0;
  background: transparent;
  padding: 8px 12px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1200;
  max-width: 90vw;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.faq-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Columns */
.faq-column {
  display: flex;
  flex-direction: column;
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  max-height: 400px;
  overflow-y: auto;
  background-color: #fff;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.faq-column:last-child {
  margin-right: 0;
  border-right: none;
}

.faq-column.hidden {
  display: none;
}

/* Items */
.faq-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.4;
}

.faq-item:hover {
  background-color: #f5f5f5;
}

.faq-item:last-child {
  border-bottom: none;
}

/* Arrow indicator for expandable items */
.faq-arrow {
  color: #aaa;
  font-size: 10px;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active {
  background-color: #EC1C24;
  color: #fff;
}

.faq-item.active .faq-arrow {
  transform: rotate(90deg);
  color: #fff;
}

/* Final (Leaf) Items */
.faq-item.final-item {
  color: #EC1C24;
  font-weight: 500;
}

.faq-item.final-item .faq-arrow {
  display: none;
}

.faq-item.final-item:hover {
  background-color: #fff5f5;
}

.faq-btn.no-arrow::after {
  display: none;
}

.clear-btn {
    background-color: #EC1C24;      
    color: white;                  
    border: 2px solid #EC1C24;      
    padding: 8px 20px;
    font-size: 12px;
    border-radius: 20px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    cursor: pointer;                
    transition: background-color 0.3s ease;  
    font-family: 'SCG', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}
.clear-btn:hover {
    background-color: #d91920;
}
.chat-container {
    flex: 1;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 500px;    
    height: calc(100vh - 160px); 
}
.chat-messages {
    flex: 1;
    padding: 15px;         
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;            
    max-height: calc(100vh - 200px); 
}
.welcome-message {
    text-align: center;
    color: #666;
    padding: 30px 20px;    
    font-size: 14px;       
}
.message {
    display: flex;
    gap: 10px;
    max-width: 80%;
}
.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.message.bot {
    align-self: flex-start;
}
.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}
.message.user .message-avatar {
    background-color: #EC1C24;
    color: white;
}
.message.bot .message-avatar {
    background-color: #333;
    color: white;
}
.message-content {
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
    font-size: 10px;       
    line-height: 1.5;    
}
.message.user .message-content {
    background: #EC1C24;
    color: white;
}
.chat-input-container {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    margin-top: 10px; 
}
.chat-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}
.chat-input:focus {
    border-color: #EC1C24;
}
.send-btn {
    background-color: #EC1C24;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.send-btn:hover {
    background-color: #d91920;
}
.send-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
/* Floating Chatbot */
.floating-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-icon {
    width: 60px;
    height: 60px;
    background-color: #EC1C24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(236, 28, 36, 0.3);
    transition: all 0.3s;
}

.chatbot-icon:hover {
    transform: scale(1.1);
}

.chatbot-icon::before {
    content: '💬';
    font-size: 24px;
    color: white;
}

.floating-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 500px;
    max-width: calc(100vw - 60px);        
    max-height: calc(100vh - 150px);      
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 1001;
    transition: all 0.3s ease;
}

.floating-chat-window.show {
    display: flex;
}
.floating-chat-window.expanded {
    width: 80vw;                          
    max-width: 1000px;                    
    height: 80vh;                         
    max-height: 800px;                    
    top: 50%;                             
    left: 50%;                            
    right: auto;                          
    bottom: auto;                         
    transform: translate(-50%, -50%);     
}

.floating-chat-header {
    background-color: #EC1C24;
    color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;                       
}

.floating-chat-title {
    font-weight: bold;
    font-size: 16px;
}

.floating-chat-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;          
}

.control-btn:hover {
    background: rgba(255,255,255,0.3);
}

.floating-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;                   
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;                       
}

.floating-chat-input-container {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    flex-shrink: 0;                       
}

.floating-chat-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    min-width: 0;                         
}

.floating-chat-input:focus {
    border-color: #EC1C24;
}

.floating-send-btn {
    background-color: #EC1C24;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;                      
    transition: background 0.2s;
}

.floating-send-btn:hover {
    background-color: #d91920;
}

.floating-send-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-chat-window {
        width: calc(100vw - 60px);
        right: 30px;
        bottom: 100px;
        height: 450px;
    }
    
    .floating-chat-window.expanded {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        max-width: none;
        max-height: none;
    }
}
/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px;
}
.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #666;
    animation: typing 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes typing {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}
/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #EC1C24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Tables */
.response-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
.response-table th,
.response-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.response-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}
/* Search Results */
.search-results-section {
    display: none !important;
}
.search-results-header {
    background-color: #f0f0f0;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-results-content {
    padding: 15px;
    display: none;
}
.search-results-content.show {
    display: block;
}
.search-result-item {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
}
.search-result-title {
    font-weight: bold;
    color: #EC1C24;
    margin-bottom: 5px;
}
.search-result-meta {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}
.btn-show-more {
    padding: 8px 16px;
    background: #EC1C24;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}
.btn-show-more:hover {
    background: #d91920;
}
/* Sources */
.sources-section {
    margin-top: 10px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;                    
    border-left: none;
}
.sources-title {
    font-weight: normal;             
    margin-bottom: 6px;              
    color: #333;                    
    font-size: 10px;                 
}
.source-link {
    color: #333;                    
    text-decoration: underline;     
    font-size: 10px;                
    padding: 0;                      
    border-radius: 0;               
    transition: color 0.2s;         
}
.source-link:hover {
    background-color: transparent;   
    color: #666;                     
    text-decoration: underline;      
}
.source-link i {
    font-size: 10px;                 
    color: #333;                     
}

/* Additional Info Section - Between answer and sources */
.additional-info {
    background: #e8f4f8;
    border-left: 4px solid #2196F3;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 4px;
    font-size: 14px;
    color: #0d47a1;
    line-height: 1.6;
}

.additional-info-icon {
    margin-right: 6px;
    font-size: 16px;
}
/* Responsive */
@media (max-width: 768px) {          
    .floating-chat-window {
        width: 300px;
        height: 400px;
        right: 20px;
        bottom: 90px;
    }
    
    .floating-chat-window.expanded {
        width: 350px;
        height: 500px;
    }
}
/* Hidden utility class */
.hidden {
    display: none !important;
}
/* Employee Profile Page Styles */
.employee-profile-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;  
}

.profile-header {
    background: white;
    padding: 8px 15px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

.back-button {
    background: #EC1C24;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;  
    height: 18px;  
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 6px;
    transition: background 0.3s;
}

.back-button:hover {
    background: #d91920;
}

.back-button i {
    font-size: 6px;  
}

.back-button span {
    display: none;
    font-size: 11px;
}
.profile-header-content {
    display: flex;
    align-items: center;
    gap: 10px; 
    position: relative;
}

.profile-avatar-section {
    flex-shrink: 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-color: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-size: cover;
    background-position: center top !important;
    font-size: 16px;
}

.profile-basic-info {
    flex: 1;
}

.profile-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.profile-id {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}

.profile-position {
    font-size: 11px;
    color: #666;
}

.profile-table-indicator {
    position: absolute;
    top: 0;
    right: 0;
}

.table-badge {
    background: #FF6B35;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Main Tabs */
.profile-main-tabs {
    display: flex;
    background: white;
    border-bottom: 2px solid #ddd;
    overflow-x: auto;
}

.profile-main-tab {
    padding: 8px 15px;
    border: none;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    font-family: 'SCG', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.profile-main-tab:hover {
    background: #f5f5f5;
}

.profile-main-tab.active {
    background: #EC1C24;
    color: white;
    border-bottom-color: #EC1C24;
}

/* Sub Tabs */
.profile-sub-tabs-container {
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.profile-sub-tabs {
    display: flex;
    padding: 5px 15px; 
    gap: 5px;
    overflow-x: auto;
}

.profile-sub-tab {
    padding: 4px 8px; 
    border: none;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 11px;
    font-family: 'SCG', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 3px;
    transition: all 0.3s;
    white-space: nowrap;
}

.profile-sub-tab:hover {
    background: #f0f0f0;
}

.profile-sub-tab.active {
    background: #EC1C24;
    color: white;
}

/* Content Area */
.profile-content-area {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f5f5f5;
    min-height: 0;
    height: 100%;
}
.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.profile-loading .loading-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

/* Profile Data Grid */
.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);  
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    min-height: auto;
    height: auto;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.profile-field-label {
    font-size: 11px;
    color: #666;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-field-value {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    background-color: #f5f5f5;  
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-field-value.placeholder {
    color: #999;
    font-style: italic;
    background-color: #fafafa;
}

/* Extra short - 5 per row (2 columns each) */
.profile-field.extra-short {
    grid-column: span 2;
}

/* Short fields - 4 per row (3 columns each) */
.profile-field.short {
    grid-column: span 3;
}

/* Small fields - 3 per row (4 columns each) */
.profile-field.small {
    grid-column: span 4;
}

/* Medium fields - 2 per row (6 columns each) */
.profile-field.medium {
    grid-column: span 6;
}

/* Long fields - 1 per row (all 12 columns) */
.profile-field.long {
    grid-column: span 12;
}

/* Allow wrapping for long fields */
.profile-field.long .profile-field-value {
    white-space: normal;
    word-break: break-word;
}

/* Responsive: Tablet */
@media (max-width: 1200px) {
    .profile-data-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .profile-field.extra-short {
        grid-column: span 2;  /* 3 per row */
    }
    
    .profile-field.short {
        grid-column: span 2;  /* 3 per row */
    }
    
    .profile-field.small {
        grid-column: span 2;  /* 3 per row */
    }
    
    .profile-field.medium {
        grid-column: span 3;  /* 2 per row */
    }
    
    .profile-field.long {
        grid-column: span 6;  /* Full width */
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .profile-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-field.extra-short,
    .profile-field.short,
    .profile-field.small {
        grid-column: span 1;  /* 2 per row */
    }
    
    .profile-field.medium,
    .profile-field.long {
        grid-column: span 2;  /* Full width */
    }
}
            
.back-button {
    width: auto;
    border-radius: 20px;
    padding: 6px 12px;
    gap: 6px;
}

.back-button span {
    display: inline;
    font-size: 11px;
}
/* Image Hover Preview */
.image-preview-popup {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    display: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    max-width: 150px;
    max-height: 150px;
}

.image-preview-popup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* Clear conversation button for floating chat */
.floating-clear-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s;
    margin-right: 8px;
}

.floating-clear-btn:hover {
    background: rgba(255,255,255,0.3);
}
/* Table styling for floating chat */
.floating-chat-messages table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
    background: white;
}

.floating-chat-messages table th {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-weight: bold;
}

.floating-chat-messages table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.floating-chat-messages table tr:hover {
    background-color: #f9f9f9;
}
/* Searchable dropdown styles */
.searchable-select-container {
    position: relative;
    min-width: 200px;
}

.searchable-select-input {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    cursor: pointer;
    box-sizing: border-box;
}

.searchable-select-input:focus {
    outline: none;
    border-color: #EC1C24;
}

.searchable-select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    transition: transform 0.2s;
}

.searchable-select-arrow.open {
    transform: translateY(-50%) rotate(180deg);
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.searchable-select-dropdown.show {
    display: block;
}

.searchable-select-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.searchable-select-option:hover {
    background: #f5f5f5;
}

.searchable-select-option.selected {
    background: #EC1C24;
    color: white;
}

.searchable-select-option.hidden {
    display: none;
}

.searchable-no-results {
    padding: 8px 12px;
    color: #999;
    font-size: 12px;
    text-align: center;
}
/* Access Denied Message */
.access-denied {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.access-denied-icon {
    font-size: 48px;
    color: #EC1C24;
    margin-bottom: 20px;
}

.access-denied-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.access-denied-message {
    font-size: 14px;
    color: #666;
}


/* Global Loading Overlay */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    background-color: #f5f5f5;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.global-loading-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid #155dfc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}