
.toast-slide-enter-active[data-v-9e5896bb],
.toast-slide-leave-active[data-v-9e5896bb] {
  transition: all 0.3s ease-out;
}
.toast-slide-enter-from[data-v-9e5896bb] {
  opacity: 0;
  transform: translateX(100%);
}
.toast-slide-leave-to[data-v-9e5896bb] {
  opacity: 0;
  transform: translateX(100%);
}
.toast-container[data-v-9e5896bb] {
  position: relative;
}

/* Header */
.toast-header[data-v-9e5896bb] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  background: #b8b9b8cc;
  width: 380px;
}
.header-left[data-v-9e5896bb] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.icon[data-v-9e5896bb] {
  font-size: 14px;
  color: #6b7280;
  flex-shrink: 0;
}
.reminder-label[data-v-9e5896bb] {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  flex-shrink: 0;
}
.time-badge[data-v-9e5896bb] {
  font-size: 12px;
  color: #9ca3af;
  padding: 2px 8px;
  background: #f9fafb;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.btn-dismiss[data-v-9e5896bb] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}
.btn-dismiss[data-v-9e5896bb]:hover {
  background: #f3f4f6;
  color: #6b7280;
}
.btn-dismiss[data-v-9e5896bb]:active {
  background: #e5e7eb;
}
.btn-dismiss i[data-v-9e5896bb] {
  font-size: 12px;
}

/* Body */
.toast-body[data-v-9e5896bb] {
  padding: 5px;
  width: 380px;
  background-color: #e4e4e4d5;
}
.lead-name[data-v-9e5896bb] {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 12px;
  line-height: 1.4;
}
.lead-comment[data-v-9e5896bb] {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0 12px;
}
.progress-fill[data-v-9e5896bb] {
  height: 100%;
  background: #3b82f6;
  width: 0%;
  transition: width var(--v554f7050) linear;
}
.reminder-toast.is-active .progress-fill[data-v-9e5896bb] {
  width: 100%;
}
.reminder-toast.is-clearing[data-v-9e5896bb] {
  animation: fadeOut-9e5896bb 0.25s ease-in forwards;
}
@keyframes fadeOut-9e5896bb {
to {
    opacity: 0;
    transform: translateX(20px);
}
}
.reminder-toast.is-clearing .progress-fill[data-v-9e5896bb] {
  transition: none;
  width: 0%;
}

/* Responsive */
@media (max-width: 480px) {
.reminder-toast[data-v-9e5896bb] {
    width: 340px;
}
.toast-header[data-v-9e5896bb] {
    padding: 10px 14px;
}
.toast-body[data-v-9e5896bb] {
    padding: 14px;
}
.lead-name[data-v-9e5896bb] {
    font-size: 14px;
}
.lead-comment[data-v-9e5896bb] {
    font-size: 13px;
}
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
.reminder-toast[data-v-9e5896bb] {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.toast-header[data-v-9e5896bb] {
    background: #111827;
    border-bottom-color: #374151;
}
.icon[data-v-9e5896bb] {
    color: #9ca3af;
}
.reminder-label[data-v-9e5896bb] {
    color: #f9fafb;
}
.time-badge[data-v-9e5896bb] {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}
.btn-dismiss[data-v-9e5896bb] {
    color: #9ca3af;
}
.btn-dismiss[data-v-9e5896bb]:hover {
    background: #374151;
    color: #d1d5db;
}
.btn-dismiss[data-v-9e5896bb]:active {
    background: #4b5563;
}
.lead-name[data-v-9e5896bb] {
    color: #f9fafb;
}
.lead-comment[data-v-9e5896bb] {
    color: #d1d5db;
}
.progress-bar[data-v-9e5896bb] {
    background: #374151;
}
}

/* 1. THE OUTLINED GREEN TAB (RIGHT SIDE) */
.error-report-tab-outline[data-v-f250256a] {
  position: fixed;
  right: 0;
  top: 80%;
  transform: rotate(-90deg) translateY(0);
  transform-origin: bottom right;
  
  /* Outline Styles */
  background: rgba(255, 255, 255, 0.9); /* Slight white bg for readability on any site color */
  border: 2px solid #10b981; /* Emerald Green */
  color: #10b981;
  
  height: 40px;
  padding: 0 20px;
  border-bottom: none; /* Keeps it attached to the edge */
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  z-index: 1000;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

/* Hover: Fill the outline with green */
.error-report-tab-outline[data-v-f250256a]:hover {
  background: #10b981;
  color: white;
  transform: rotate(-90deg) translateY(-5px); /* Pop out slightly */
}
.tab-content[data-v-f250256a] { display: flex; align-items: center; gap: 10px;
}
.tab-text[data-v-f250256a] { font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.tab-icon[data-v-f250256a] { stroke: currentColor;
}

/* 2. MODAL STYLES (MATCHING GREEN THEME) */
.modal-overlay[data-v-f250256a] { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 2000;
}
.modal-container[data-v-f250256a] { background: white; width: 90%; max-width: 500px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-header[data-v-f250256a] { padding: 15px 20px; background: #f9fafb; display: flex; justify-content: space-between; border-bottom: 1px solid #eee;
}
.accent-bar[data-v-f250256a] { width: 4px; background: #10b981; border-radius: 2px; height: 20px; margin-right: 10px;
}
.header-title[data-v-f250256a] { display: flex; align-items: center; font-weight: 700; color: #064e3b;
}
.modal-body[data-v-f250256a] { padding: 20px;
}
.form-grid[data-v-f250256a] { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px;
}
.form-group label[data-v-f250256a] { display: block; font-size: 12px; font-weight: 600; color: #666; margin-bottom: 5px;
}
.form-group input[data-v-f250256a], .form-group textarea[data-v-f250256a], .form-group select[data-v-f250256a] { width: 100%; border: 1px solid #ddd; padding: 8px; border-radius: 6px;
}

/* SCREENSHOT AREA */
.file-upload-zone[data-v-f250256a] { display: flex; align-items: center; gap: 15px; padding: 10px; background: #f0fdf4; border: 1px dashed #10b981; border-radius: 8px;
}
.btn-outline-action[data-v-f250256a] { background: white; border: 1px solid #10b981; color: #10b981; padding: 5px 12px; border-radius: 4px; font-weight: 600; cursor: pointer;
}
.thumb-preview[data-v-f250256a] { position: relative; width: 40px; height: 40px; border: 1px solid #10b981; border-radius: 4px;
}
.thumb-preview img[data-v-f250256a] { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover;
}
.remove-thumb[data-v-f250256a] { position: absolute; top: -5px; right: -5px; background: red; color: white; border: none; border-radius: 50%; width: 15px; height: 15px; font-size: 10px; cursor: pointer;
}

/* SUBMIT BUTTON */
.btn-submit-green[data-v-f250256a] { background: #10b981; color: white; border: none; padding: 10px 25px; border-radius: 6px; font-weight: 700; cursor: pointer;
}
.btn-submit-green[data-v-f250256a]:hover { background: #059669;
}
.btn-cancel[data-v-f250256a] { background: transparent; border: none; color: #999; cursor: pointer; margin-right: 10px;
}
@media (max-width: 600px) {
.error-report-tab-outline[data-v-f250256a] { transform: rotate(0); top: auto; bottom: 0; right: 20px; border-bottom: 1px solid #10b981; border-radius: 8px 8px 0 0;
}
}

/* Theme Colors */
[data-v-c8f4da81]:root {
  --app-green-primary: #10b981; /* Main Emerald Green */
  --app-green-dark: #059669;
  --app-green-light: #ecfdf5;
  --border-color: #e5e7eb;
}

/* Overlay & Container */
.update-modal-overlay[data-v-c8f4da81] {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75); /* Darker slate backdrop */
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.update-modal-card[data-v-c8f4da81] {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
}

/* Dark Mode Support */
html[data-bs-theme="dark"] .update-modal-card[data-v-c8f4da81] {
  background: #1e293b;
  color: #f8fafc;
}

/* Header Styles */
.modal-header[data-v-c8f4da81] {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.title-text[data-v-c8f4da81] { font-size: 1.25rem; font-weight: 700; margin: 0; color: #111827;
}
html[data-bs-theme="dark"] .title-text[data-v-c8f4da81] { color: #f8fafc;
}
.subtitle-text[data-v-c8f4da81] { font-size: 0.875rem; color: #6b7280; margin: 0.25rem 0 0;
}
.close-icon-btn[data-v-c8f4da81] {
  background: none; border: none; font-size: 1.75rem; color: #9ca3af;
  cursor: pointer; line-height: 1; transition: color 0.2s;
}
.close-icon-btn[data-v-c8f4da81]:hover { color: var(--app-green-primary);
}

/* Body Styles - Typography Handling */
.modal-body[data-v-c8f4da81] { padding: 1.5rem; overflow-y: auto; flex: 1;
}
.log-meta[data-v-c8f4da81] { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.version-badge[data-v-c8f4da81] {
  font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem;
  border-radius: 9999px; text-transform: uppercase;
  background: #dcfce7; color: #166534; /* Green themed badges */
}
.release-date[data-v-c8f4da81] { font-size: 0.875rem; color: #9ca3af;
}
.log-title[data-v-c8f4da81] {
  font-size: 1.35rem; font-weight: 800; margin-bottom: 0.75rem;
  color: #111827;
  /* Text wrapping logic */
  overflow-wrap: break-word; word-break: break-word; text-wrap: balance;
}
html[data-bs-theme="dark"] .log-title[data-v-c8f4da81] { color: #ffffff;
}
.log-description[data-v-c8f4da81] {
  font-size: 1rem; line-height: 1.6; color: #4b5563; margin-bottom: 1.5rem;
  /* PREVENTS OVERFLOW: Moves to next line automatically */
  overflow-wrap: break-word; word-break: break-word; white-space: normal;
  text-wrap: pretty;
}
html[data-bs-theme="dark"] .log-description[data-v-c8f4da81] { color: #cbd5e1;
}
.section-label[data-v-c8f4da81] { font-size: 0.75rem; font-weight: 700; color: var(--app-green-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.changes-list[data-v-c8f4da81] { padding-left: 1.25rem; list-style-type: disc; color: inherit;
}
.changes-list li[data-v-c8f4da81] { margin-bottom: 0.5rem; font-size: 0.9375rem; overflow-wrap: break-word;
}

/* Footer & Outline Button */
.modal-footer[data-v-c8f4da81] { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border-color);
}
.btn-outline-green[data-v-c8f4da81] {
  width: 100%;
  background: transparent;
  color: #10b981;
  border: 2px solid #10b981;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outline-green[data-v-c8f4da81]:hover {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.btn-outline-green[data-v-c8f4da81]:active { transform: scale(0.98);
}

/* Loader */
.loader-container[data-v-c8f4da81] { padding: 3rem; display: flex; justify-content: center;
}
.spinner[data-v-c8f4da81] {
  width: 2.5rem; height: 2.5rem; border: 3px solid #f3f3f3;
  border-top: 3px solid #10b981; border-radius: 50%;
  animation: spin-c8f4da81 1s linear infinite;
}
@keyframes spin-c8f4da81 {
0% { transform: rotate(0deg);
}
100% { transform: rotate(360deg);
}
}

/* Transition Animation */
.modal-fade-enter-active[data-v-c8f4da81], .modal-fade-leave-active[data-v-c8f4da81] { transition: opacity 0.3s ease;
}
.modal-fade-enter-from[data-v-c8f4da81], .modal-fade-leave-to[data-v-c8f4da81] { opacity: 0;
}

/* Animations */
@keyframes slideUp-a8d674e3 {
from { opacity: 0; transform: translateY(10px);
}
to { opacity: 1; transform: translateY(0);
}
}
@keyframes pulse-a8d674e3 {
0%, 100% { opacity: 0.4;
}
50% { opacity: 1;
}
}
.expand-enter-active[data-v-a8d674e3], .expand-leave-active[data-v-a8d674e3] { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden;
}
.expand-enter-from[data-v-a8d674e3], .expand-leave-to[data-v-a8d674e3] { opacity: 0; max-height: 0;
}
.expand-enter-to[data-v-a8d674e3], .expand-leave-from[data-v-a8d674e3] { opacity: 1; max-height: 500px;
}
.message-list-enter-active[data-v-a8d674e3] { animation: slideUp-a8d674e3 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.message-list-leave-active[data-v-a8d674e3] { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.message-list-leave-to[data-v-a8d674e3] { opacity: 0; transform: scale(0.9);
}
.badge[data-v-a8d674e3] { background: #ff3b30; color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; margin-left: 6px; font-weight: 600; animation: pulse-a8d674e3 1.5s infinite;
}

/* Floating box */
.floating-chat-box[data-v-a8d674e3] { 
  position: fixed; 
  bottom: 0; 
  width: 340px; 
  height: 480px; 
  background: white; 
  border-radius: 16px 16px 0 0; 
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12); 
  display: flex; 
  flex-direction: column; 
  border: 1px solid rgba(0, 0, 0, 0.08); 
  transition: right 0.4s ease, height 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  z-index: 9999; 
  overflow: hidden;
}
.floating-chat-box.minimized[data-v-a8d674e3] { height: 56px;
}

/* Header */
.chat-header[data-v-a8d674e3] { 
  padding: 12px 16px; 
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%); 
  color: white; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  cursor: pointer;
}
.chat-header[data-v-a8d674e3]:hover { background: linear-gradient(135deg, #081c15 0%, #1b4332 100%);
}
.user-info[data-v-a8d674e3] { display: flex; align-items: center; gap: 10px;
}
.avatar-wrapper[data-v-a8d674e3] { position: relative;
}
.avatar[data-v-a8d674e3] { width: 36px; height: 36px; border-radius: 50%; border: 2px solid white; -o-object-fit: cover; object-fit: cover;
}
.status-dot[data-v-a8d674e3] { position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; background: #48bb78; border: 2px solid white; border-radius: 50%; animation: pulse-a8d674e3 2s infinite;
}
.details[data-v-a8d674e3] { display: flex; flex-direction: column; gap: 2px;
}
.name[data-v-a8d674e3] { font-size: 14px; font-weight: 600; letter-spacing: 0.2px; color: white;
}
.status[data-v-a8d674e3] { font-size: 11px; opacity: 0.95; font-weight: 400; color: white;
}
.controls[data-v-a8d674e3] { display: flex; gap: 12px;
}
.control-btn[data-v-a8d674e3] { background: transparent; border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; font-size: 16px; padding: 4px;
}
.control-btn[data-v-a8d674e3]:hover { transform: scale(1.2); opacity: 0.8;
}

/* Body */
.chat-body[data-v-a8d674e3] { flex: 1; overflow-y: auto; padding: 16px; background: #fafbfc; display: flex; flex-direction: column;
}
.chat-body[data-v-a8d674e3]::-webkit-scrollbar { width: 6px;
}
.chat-body[data-v-a8d674e3]::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 3px;
}
.loading-older[data-v-a8d674e3] { display: flex; justify-content: center; gap: 4px; padding: 10px 0;
}
.loading-older .dot[data-v-a8d674e3] { width: 6px; height: 6px; background: #d0d0d0; border-radius: 50%; animation: pulse-a8d674e3 1s infinite;
}
.messages-container[data-v-a8d674e3] { display: flex; flex-direction: column; gap: 8px;
}

/* MESSAGE STRUCTURE UPDATES */
.message[data-v-a8d674e3] { 
  display: flex; 
  flex-direction: column; /* Stack Date on top of Bubble */
  animation: slideUp-a8d674e3 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  width: 100%;
}

/* Align bubbles based on sender using align-items instead of justify-content */
.message.sent[data-v-a8d674e3] { align-items: flex-end;
}
.message.received[data-v-a8d674e3] { align-items: flex-start;
}

/* DATE SEPARATOR STYLE */
.date-separator[data-v-a8d674e3] {
  align-self: center; /* Always center the date */
  font-size: 11px;
  color: #8e8e8e;
  font-weight: 500;
  margin-top: 16px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
.message:first-child .date-separator[data-v-a8d674e3] { margin-top: 0;
}

/* Bubble Style */
.bubble[data-v-a8d674e3] { 
  max-width: 75%; 
  padding: 8px 12px 6px 12px; 
  border-radius: 18px; 
  font-size: 14px; 
  line-height: 1.5; 
  position: relative; 
  word-wrap: break-word; 
  display: block;
}
.bubble[data-v-a8d674e3]::after { content: ""; display: table; clear: both;
}
.sent .bubble[data-v-a8d674e3] { 
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%); 
  color: white; 
  border-bottom-right-radius: 4px; 
  box-shadow: 0 2px 10px rgba(45, 106, 79, 0.3);
}
.received .bubble[data-v-a8d674e3] { 
  background: white; 
  color: #2d3748; 
  border: 1px solid #e2e8f0; 
  border-bottom-left-radius: 4px; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.message-text[data-v-a8d674e3] { display: inline; white-space: pre-wrap;
}
.time[data-v-a8d674e3] { font-size: 10px; float: right; margin-left: 10px; margin-top: 8px; opacity: 0.7; line-height: 1;
}
.sent .time[data-v-a8d674e3] { color: #d8f3dc;
}
.received .time[data-v-a8d674e3] { color: #a0aec0;
}

/* Footer */
.chat-footer[data-v-a8d674e3] { padding: 12px 16px; border-top: 1px solid rgba(0, 0, 0, 0.06); display: flex; gap: 8px; align-items: center; background: white;
}
.message-input[data-v-a8d674e3] { flex: 1; border: 1px solid #e2e8f0; border-radius: 20px; padding: 10px 16px; font-size: 14px; outline: none; transition: all 0.2s ease; background: #fafbfc; color: #2d3748;
}
.message-input[data-v-a8d674e3]:focus { border-color: #2d6a4f; background: white; box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}
.send-btn[data-v-a8d674e3] { width: 32px; height: 32px; border-radius: 50%; border: none; background: #e2e8f0; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 14px;
}
.send-btn.active[data-v-a8d674e3] { background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%); box-shadow: 0 2px 12px rgba(45, 106, 79, 0.4);
}

/* --- Horizontal Scroll for Users --- */
.horizontal-scroll-users {
  /* Hide scrollbar completely for all browsers */
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
.horizontal-scroll-users::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Grabbing cursor state */
.horizontal-scroll-users.active-drag {
  cursor: grabbing !important;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.user-story-item {
  cursor: pointer;
}
.user-story-item:hover .rounded-circle {
  transform: scale(1.05);
  transition: transform 0.2s ease;
  border-color: #5d87ff !important;
}

/* --- Sidebar & Layout Logic --- */
.bg-light-primary { background-color: rgba(93, 135, 255, 0.1) !important;
}
/* 1. Base State (Desktop) */
.left-sidebar.with-vertical {
  width: 270px;
  transition: width 0.3s ease, left 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  /* z-index: 1040; */
}
.page-wrapper {
  margin-left: 270px;
  transition: margin-left 0.3s ease;
  width: calc(100% - 270px);
}

/* 2. Collapsed State (Desktop - Mini Menu) */
#main-wrapper.show-sidebar .left-sidebar.with-vertical {
  width: 80px;
}
#main-wrapper.show-sidebar .page-wrapper {
  margin-left: 80px;
  width: calc(100% - 80px);
}

/* Hide text in Mini Sidebar (Desktop only) */
#main-wrapper.show-sidebar .hide-menu,
#main-wrapper.show-sidebar .ww,
#main-wrapper.show-sidebar .nav-small-cap span,
#main-wrapper.show-sidebar .sidebar-link.has-arrow:after,
#main-wrapper.show-sidebar .fixed-profile {
  opacity: 0;
  visibility: hidden;
  width: 0;
  transition: opacity 0.1s ease, width 0s linear 0.1s;
}

/* Center icons in Mini Sidebar */
#main-wrapper.show-sidebar .nav-small-cap {
  justify-content: center;
  padding: 10px 0;
  margin: 0;
  height: auto;
  font-size: 0;
}
#main-wrapper.show-sidebar .nav-small-cap .nav-small-cap-icon {
  opacity: 1;
  visibility: visible;
  width: auto;
}
#main-wrapper.show-sidebar .sidebar-nav .sidebar-item .sidebar-link {
  justify-content: center;
  padding: 12px 0;
}
#main-wrapper.show-sidebar .sidebar-nav ul .sidebar-item .sidebar-link .aside-icon {
  margin: 0;
}
#main-wrapper.show-sidebar .brand-logo {
  justify-content: center;
  padding: 15px 0;
}
#main-wrapper.show-sidebar .brand-logo .ww {
  display: none;
}

/* Tooltip on hover for Mini Sidebar */
#main-wrapper.show-sidebar .sidebar-link:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1060;
  font-size: 14px;
  opacity: 0;
  animation: fadeInTooltip 0.2s ease-in-out 0.3s forwards;
  pointer-events: none;
}
#main-wrapper.show-sidebar .sidebar-link:hover::after {
  content: '';
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 6px 4px 0;
  border-color: transparent #333 transparent transparent;
  z-index: 1060;
  opacity: 0;
  animation: fadeInTooltip 0.2s ease-in-out 0.3s forwards;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1199px) {
  /* Default Mobile: Sidebar Hidden */
.left-sidebar.with-vertical {
    left: -270px;
    width: 270px; /* Always full width */
}

  /* Page Wrapper: Full Width always */
.page-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
}

  /* Open Mobile Sidebar (.show-sidebar) */
#main-wrapper.show-sidebar .left-sidebar.with-vertical {
    left: 0;
    width: 270px; /* Force Full Width, ignore 80px rule */
}

  /* Force Text Visibility on Mobile Open (Override Desktop Hide) */
#main-wrapper.show-sidebar .hide-menu,
  #main-wrapper.show-sidebar .ww,
  #main-wrapper.show-sidebar .nav-small-cap span,
  #main-wrapper.show-sidebar .sidebar-link.has-arrow:after,
  #main-wrapper.show-sidebar .fixed-profile {
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
}
  
  /* Reset alignment for mobile */
#main-wrapper.show-sidebar .nav-small-cap {
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 12px;
}
#main-wrapper.show-sidebar .sidebar-nav .sidebar-item .sidebar-link {
    justify-content: flex-start;
    padding: 10px 15px;
}
#main-wrapper.show-sidebar .brand-logo {
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
}
#main-wrapper.show-sidebar .brand-logo .ww {
    display: block;
}

  /* Overlay Style */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 1039;
}
}

/* --- Other Styles --- */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(31, 41, 55, 0.1);
  z-index: 1000;
  max-height: 500px;
  overflow: hidden;
  animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
html[data-bs-theme="dark"] .search-results-dropdown {
  background: #1e293b;
  border-color: #374151;
}
.search-results-container {
  max-height: 500px;
  overflow-y: auto;
  padding: 8px 0;
}
.search-result-item {
  border-bottom: 1px solid #f1f5f9;
}
.search-result-item:last-child {
  border-bottom: none;
}
html[data-bs-theme="dark"] .search-result-item {
  border-bottom-color: #374151;
}
.search-result-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease-in-out;
}
.search-result-link:hover {
  background-color: #f8f9fa;
}
html[data-bs-theme="dark"] .search-result-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.search-result-avatar {
  flex-shrink: 0;
}
.avatar-image,
.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  -o-object-fit: cover;
     object-fit: cover;
}
.avatar-image {
  border: 2px solid #e2e8f0;
}
.avatar-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
html[data-bs-theme="dark"] .avatar-image {
  border-color: #374151;
}
.search-result-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.result-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}
.type-icon {
  margin-right: 4px;
  font-size: 10px;
}
.search-result-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.result-id,
.result-contact,
.result-university {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
}
.result-icon {
  width: 14px;
  text-align: center;
  color: #94a3b8;
}
.result-id span,
.result-contact span,
.result-university span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.type-badge.application { background: #dbeafe; color: #1e40af;
}
.type-badge.lead { background: #d1fae5; color: #059669;
}
.type-badge.enquiry { background: #fef3c7; color: #d97706;
}
.type-badge.default { background: #f1f5f9; color: #475569;
}
html[data-bs-theme="dark"] .result-name { color: #f8fafc;
}
html[data-bs-theme="dark"] .result-id,
html[data-bs-theme="dark"] .result-contact,
html[data-bs-theme="dark"] .result-university { color: #9ca3af;
}
html[data-bs-theme="dark"] .result-icon { color: #6b7280;
}
.no-results {
  padding: 40px 20px;
  text-align: center;
}
.no-results-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.no-results-icon {
  font-size: 32px;
  color: #cbd5e0;
  margin-bottom: 16px;
}
.no-results-text {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  margin: 0 0 8px 0;
}
html[data-bs-theme="dark"] .no-results-text {
  color: #e5e7eb;
}
@keyframes slideDown {
from {
    opacity: 0;
    transform: translateY(-10px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}
.badge1 {
  position: absolute;
  top: 25px;
  right: 5px;
  background-color: #28a745 !important;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
  box-sizing: content-box;
}
.notification-badge {
  position: absolute;
  top: 16px;
  right: -7px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  display: none;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
}
.notification-badge.has-notifications {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notification-item {
  cursor: pointer;
  transition: background-color 0.2s;
}
html[data-bs-theme="light"] .notification-item:hover {
  background-color: #f8f9fa;
}
html[data-bs-theme="light"] .notification-item.unread {
  background-color: #f1f9ff;
}
html[data-bs-theme="dark"] .notification-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
html[data-bs-theme="dark"] .notification-item.unread {
  background-color: rgba(46, 134, 222, 0.15);
}
.notification-icon {
  margin-right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-bs-theme="light"] .notification-icon {
  background-color: #e9ecef;
  color: #6c757d;
}
html[data-bs-theme="dark"] .notification-icon {
  background-color: #343a40;
  color: #adb5bd;
}
html[data-bs-theme="light"] .notification-item.unread .notification-icon {
  background-color: #2e86de;
  color: white;
}
html[data-bs-theme="dark"] .notification-item.unread .notification-icon {
  background-color: #2e86de;
  color: white;
}
#reminderToastContainer {
  pointer-events: none;
  width: 380px;
  max-width: 95vw;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
}
#reminderToastContainer > * {
  pointer-events: auto;
}
.toast-stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  width: 100%;
}
.clear-all-wrapper {
  margin-bottom: 12px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.clear-all-wrapper .btn {
  width: 100%;
  padding: 8px;
  font-weight: 500;
}
.toast-animation-enter-active {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast-animation-leave-active {
  transition: all 0.4s cubic-bezier(0.55, 0, 1, 0.45);
  position: absolute;
}
.toast-animation-enter-from {
  opacity: 0;
  transform: translateX(100%);
}
.toast-animation-leave-to {
  opacity: 0;
  transform: scale(0.9) translateX(100%);
}
.toast-animation-move {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar-nav .sidebar-item .collapse.first-level {
  display: block !important;
  overflow: hidden !important;
  max-height: 0 !important;
  opacity: 0 !important;
  transition: max-height 0.35s ease-in-out, opacity 0.3s ease-in-out !important;
  padding: 0 !important; 
  margin: 0 !important;
}
.sidebar-nav .sidebar-item .collapse.first-level.show {
  max-height: 500px !important; 
  opacity: 1 !important;
}
.sidebar-item.active > .sidebar-link.has-arrow::after {
  transform: rotate(-135deg) !important;
}
#main-wrapper.full-page-mode .left-sidebar {
  display: none !important;
}
.page-wrapper.full-width {
  margin-left: 0 !important;
  width: 100% !important;
}
.container-fluid.p-0 {
  padding: 0 !important;
}
#main-wrapper.full-page-mode {
  min-height: 100vh;
}
#main-wrapper.full-page-mode .page-wrapper {
  min-height: 100vh;
}
#main-wrapper.full-page-mode .body-wrapper {
  min-height: 100vh;
}
.search-box {
  position: relative;
  width: 300px;
}
.search-box input {
  border-radius: 20px;
  padding: 8px 15px;
  border: 1px solid #ddd;
}
.notice-banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}
.notice-banner-content {
  position: relative;
  background: #fff;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}
html[data-bs-theme="dark"] .notice-banner-content {
    background: #2a3542;
    color: #f1f1f1;
}
@keyframes fadeIn {
from { opacity: 0; transform: scale(0.95);
}
to { opacity: 1; transform: scale(1);
}
}
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
html[data-bs-theme="dark"] .close-button {
    color: #ccc;
}
.close-button:hover {
  color: #000;
}
html[data-bs-theme="dark"] .close-button:hover {
    color: #fff;
}
.notice-body {
  display: flex;
  flex-direction: column;
}
.notice-image {
  width: 100%;
  height: 350px; 
  -o-object-fit: cover; 
     object-fit: cover;
  display: block;
}
.notice-text {
  padding: 25px 30px;
}
.notice-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}
.notice-description {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
}
.dropdown-menu .message-body {
  max-height: 400px;
  overflow-y: auto;
}
.truncate-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}
html[data-bs-theme="dark"] .search-box input {
  background-color: #2c3e50;
  border-color: #495057;
  color: #fff;
}
@media (max-width: 768px) {
.sidebartoggler {
    position: relative;
    z-index: 1041;
}
}
.scroll-sidebar::-webkit-scrollbar {
  width: 6px;
}
.scroll-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
html[data-bs-theme="dark"] .scroll-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}
@keyframes fadeInTooltip {
from { opacity: 0;
}
to { opacity: 1;
}
}
@media (max-width: 576px) {
.notice-image { height: 220px;
}
.notice-text { padding: 20px;
}
.search-box { width: 100%; max-width: 250px;
}
}
.sidebartoggler {
  cursor: pointer;
}
