.table-container {
  overflow-x: auto !important;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #6366f1 #e5e7eb;
}
.table-container::-webkit-scrollbar {
  height: 8px;
}
.table-container::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 6px;
}
.table-container::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 6px;
}
/* Mobile Responsive: Existing Users Table */
@media (max-width: 900px) {
  .table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: none;
    border-radius: 12px;
    box-shadow: none;
  }
  .users-table {
    min-width: 700px;
    font-size: 0.97em;
  }
  .users-table thead th, .users-table td {
    padding: 0.6rem 0.3rem;
    font-size: 0.97em;
  }
}
@media (max-width: 600px) {
  .users-table {
    min-width: 540px;
    font-size: 0.93em;
  }
  .users-table thead th, .users-table td {
    padding: 0.5rem 0.2rem;
    font-size: 0.93em;
  }
  .users-table .action-buttons {
    gap: 0.15rem;
  }
}
/* Modern User Table Redesign */
.users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 1.1rem;
  background: none;
}
.users-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0.9rem 0.5rem;
  z-index: 2;
  letter-spacing: 0.03em;
  font-size: 1.01em;
}
.users-table tbody tr.user-row {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 16px 0 rgba(30,41,59,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 1px solid #e2e8f0;
}

.users-table tbody tr.user-row:hover {
  box-shadow: 0 4px 24px 0 rgba(30, 64, 175, 0.15);
  transform: translateY(-2px) scale(1.01);
  border-color: #1e40af;
}

/* Light mode users table styling */
.light-mode .users-table tbody tr.user-row {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px 0 rgba(30, 64, 175, 0.12) !important;
  border: 2px solid rgba(30, 64, 175, 0.1) !important;
}

.light-mode .users-table tbody tr.user-row:hover {
  box-shadow: 0 8px 32px 0 rgba(30, 64, 175, 0.2) !important;
  border-color: #1e40af !important;
}

.light-mode .users-table thead th {
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border-bottom: 3px solid #3b82f6 !important;
}
.users-table td, .users-table th {
  vertical-align: middle;
  text-align: center;
  border: none;
  padding: 0.7rem 0.3rem;
}
.users-table .input-wrapper, .users-table .select-wrapper {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.users-table .table-input, .users-table .table-select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  color: #374151;
  width: 100%;
  padding: 0.2rem 0.1rem;
}
.users-table .table-select {
  min-width: 60px;
}
.users-table .usage-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
}
.users-table .orders-used-badge, .users-table .chats-used-badge {
  background: #eef2ff;
  color: #6366f1;
  border-radius: 999px;
  font-size: 0.98em;
  font-weight: 700;
  padding: 0.25rem 1.1rem 0.25rem 0.7rem;
  box-shadow: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.users-table .orders-used-badge i, .users-table .chats-used-badge i {
  color: #fbbf24;
  font-size: 1.1em;
  margin-right: 0.2em;
}
.users-table .usage-max {
  color: #a5b4fc;
  font-weight: 400;
  margin-left: 0.1em;
}
.users-table .btn-reset {
  background: #6366f1;
  color: #fff;
  border-radius: 50%;
  padding: 0.35rem 0.5rem;
  font-size: 1em;
  margin-left: 0.2rem;
  box-shadow: 0 1px 4px rgba(99,102,241,0.13);
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.users-table .btn-reset:hover {
  background: #4f46e5;
  color: #fff;
}
.users-table .action-buttons {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
}
.users-table .btn-action {
  border-radius: 50%;
  padding: 0.45rem 0.55rem;
  font-size: 1.1em;
  margin: 0 0.05rem;
  box-shadow: 0 1px 4px rgba(30,41,59,0.08);
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.users-table .btn-action:active {
  transform: scale(0.97);
}
.users-table .btn-key { background: #fbbf24; color: #23293a; }
.users-table .btn-key:hover { background: #fde68a; color: #23293a; }
.users-table .btn-save { background: #4f46e5; color: #fff; }
.users-table .btn-save:hover { background: #6366f1; color: #fff; }
.users-table .btn-delete { background: #dc2626; color: #fff; }
.users-table .btn-delete:hover { background: #b91c1c; color: #fff; }
.users-table .admin-status .status-badge {
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-weight: 700;
  background: #f3f4f6;
  color: #6366f1;
  font-size: 0.98em;
}
.users-table tr.user-row.disabled-user {
  opacity: 0.6;
  filter: grayscale(0.2);
}
body:not(.light-mode) .users-table tbody tr.user-row {
  background: rgba(55, 65, 81, 0.9) !important;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.3) !important;
  border: 1px solid #4b5563 !important;
}

body:not(.light-mode) .users-table tbody tr.user-row:hover {
  box-shadow: 0 6px 30px 0 rgba(139, 92, 246, 0.2) !important;
  transform: translateY(-2px) scale(1.01) !important;
  border-color: #8b5cf6 !important;
}

body:not(.light-mode) .users-table thead th {
  background: linear-gradient(90deg, #374151 0%, #4b5563 100%) !important;
  color: #f9fafb !important;
  border-bottom: 2px solid #6b7280 !important;
}
body:not(.light-mode) .users-table .input-wrapper, body:not(.light-mode) .users-table .select-wrapper {
  background: #1a2130;
}
body:not(.light-mode) .users-table .table-input, body:not(.light-mode) .users-table .table-select {
  color: #e0e7ef;
}
body:not(.light-mode) .users-table .orders-used-badge, body:not(.light-mode) .users-table .chats-used-badge {
  background: #374151;
  color: #a5b4fc;
}
body:not(.light-mode) .users-table .usage-max {
  color: #818cf8;
}
body:not(.light-mode) .users-table .btn-reset {
  background: #6366f1;
  color: #fff;
}
body:not(.light-mode) .users-table .btn-reset:hover {
  background: #818cf8;
  color: #fff;
}
body:not(.light-mode) .users-table .btn-action { box-shadow: 0 1px 4px rgba(0,0,0,0.13); }
body:not(.light-mode) .users-table .btn-key { background: #fbbf24; color: #23293a; }
body:not(.light-mode) .users-table .btn-save { background: #6366f1; color: #fff; }
body:not(.light-mode) .users-table .btn-delete { background: #dc2626; color: #fff; }
body:not(.light-mode) .users-table .admin-status .status-badge {
  background: #374151;
  color: #a5b4fc;
}
/* Improved Users Table Badges and Actions */
.orders-used-badge, .chats-used-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #23293a 0%, #374151 100%);
  color: #a5b4fc;
  border-radius: 6px;
  padding: 0.18rem 0.7rem 0.18rem 0.5rem;
  font-size: 0.92em;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(30,41,59,0.08);
  border: 1px solid #374151;
}
.orders-used-badge i, .chats-used-badge i {
  color: #fbbf24;
  font-size: 1em;
  margin-right: 0.2em;
}
.usage-max {
  color: #64748b;
  font-weight: 400;
  margin-left: 0.1em;
}
body:not(.light-mode) .orders-used-badge, body:not(.light-mode) .chats-used-badge {
  background: linear-gradient(135deg, #23293a 0%, #374151 100%);
  color: #a5b4fc;
  border: 1px solid #23293a;
}
body:not(.light-mode) .usage-max {
  color: #64748b;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  margin: 0 0.08rem;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(30,41,59,0.08);
}
.btn-action i { margin: 0; }
.btn-key { background: #fbbf24; color: #23293a; }
.btn-key:hover { background: #f59e42; color: #23293a; }
.btn-save { background: #4f46e5; color: #fff; }
.btn-save:hover { background: #6366f1; color: #fff; }
.btn-delete { background: #dc2626; color: #fff; }
.btn-delete:hover { background: #b91c1c; color: #fff; }
.btn-reset { background: #64748b; color: #fff; border-radius: 50%; padding: 0.3rem 0.45rem; font-size: 0.95em; }
.btn-reset:hover { background: #475569; color: #fff; }
body:not(.light-mode) .btn-action { box-shadow: 0 1px 4px rgba(0,0,0,0.13); }
body:not(.light-mode) .btn-key { background: #fbbf24; color: #23293a; }
body:not(.light-mode) .btn-save { background: #6366f1; color: #fff; }
body:not(.light-mode) .btn-delete { background: #dc2626; color: #fff; }
body:not(.light-mode) .btn-reset { background: #374151; color: #fff; }

/* Pagination Styling */
.pagination-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  min-width: 40px;
  text-align: center;
}

.pagination-btn:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.pagination-btn.current {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.pagination-ellipsis {
  color: #6b7280;
  font-weight: bold;
}

.pagination-info {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Light mode pagination */
.light-mode .pagination-section {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(30, 64, 175, 0.2) !important;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.1) !important;
}

.light-mode .pagination-btn {
  border-color: rgba(30, 64, 175, 0.3) !important;
  color: #0f172a !important;
}

.light-mode .pagination-btn:hover {
  background: #1e40af !important;
  border-color: #1e40af !important;
}

.light-mode .pagination-btn.current {
  background: #1e40af !important;
  border-color: #1e40af !important;
}

body:not(.light-mode) .pagination-section {
  background: #1a2130;
  border: 1px solid #23293a;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  padding: 1.2rem 1rem 0.7rem 1rem;
  margin-bottom: 1.5rem;
}
/* Dark mode pagination styles */
body:not(.light-mode) .pagination-container {
  background: none;
}
body:not(.light-mode) .pagination-btn {
  background: #23293a;
  color: #a5b4fc;
  border: 1px solid #374151;
}
body:not(.light-mode) .pagination-btn:hover {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}
body:not(.light-mode) .pagination-btn.current {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}
body:not(.light-mode) .pagination-ellipsis {
  color: #64748b;
}
body:not(.light-mode) .pagination-info {
  color: #a5b4fc;
}
/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Viewport and container fixes */
html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: #f8fafc;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #334155 30%, #475569 70%, #334155 100%);
    min-height: 100vh;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Enhanced light mode styling */
.light-mode {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 70%, #e2e8f0 100%) !important;
}

.light-mode body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 70%, #e2e8f0 100%) !important;
}

.light-mode .content-section,
.light-mode .stats-card,
.light-mode .usage-card,
.light-mode .card,
.light-mode .welcome-section {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    padding: 2rem !important;
    margin-bottom: 1.5rem !important;
    transition: all 0.3s ease !important;
}

.light-mode .content-section:hover,
.light-mode .stats-card:hover,
.light-mode .usage-card:hover,
.light-mode .card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Enhanced light mode text */
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode h5,
.light-mode h6 {
    color: #1e293b !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
}

.light-mode p,
.light-mode span,
.light-mode div,
.light-mode label {
    color: #334155 !important;
    font-weight: 500 !important;
}

/* Light mode navigation links */
.light-mode .nav-item {
    color: #475569 !important;
    text-decoration: none !important;
}

.light-mode .nav-item:hover {
    color: #1e293b !important;
    text-decoration: none !important;
}

.light-mode a {
    color: #3b82f6 !important;
    text-decoration: none !important;
}

.light-mode a:hover {
    color: #1d4ed8 !important;
    text-decoration: none !important;
}

/* Global button reset and comprehensive styling */
button:not(.mobile-menu-toggle):not(.theme-toggle-header):not(.mobile-close-btn):not(.nav-item), 
.btn, 
a.btn, 
input[type="button"], 
input[type="submit"] {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: auto !important;
}

button:not(.mobile-menu-toggle):not(.theme-toggle-header):not(.mobile-close-btn):not(.nav-item):hover, 
.btn:hover, 
a.btn:hover, 
input[type="button"]:hover, 
input[type="submit"]:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35) !important;
    text-decoration: none !important;
}

/* Light mode override for all buttons */
.light-mode button:not(.mobile-menu-toggle):not(.theme-toggle-header):not(.mobile-close-btn):not(.nav-item), 
.light-mode .btn, 
.light-mode a.btn, 
.light-mode input[type="button"], 
.light-mode input[type="submit"] {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3) !important;
}

.light-mode button:not(.mobile-menu-toggle):not(.theme-toggle-header):not(.mobile-close-btn):not(.nav-item):hover, 
.light-mode .btn:hover, 
.light-mode a.btn:hover, 
.light-mode input[type="button"]:hover, 
.light-mode input[type="submit"]:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4) !important;
}

/* Enhanced dark mode buttons */
body:not(.light-mode) .btn,
body:not(.light-mode) button,
body:not(.light-mode) a.btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

body:not(.light-mode) .btn:hover,
body:not(.light-mode) button:hover,
body:not(.light-mode) a.btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35) !important;
    text-decoration: none !important;
}

/* Specific button variants for better visibility */
.btn-secondary,
a.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: white !important;
}

.light-mode .btn-secondary,
.light-mode a.btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3) !important;
}

.light-mode .btn-secondary:hover,
.light-mode a.btn-secondary:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important;
    box-shadow: 0 6px 16px rgba(71, 85, 105, 0.4) !important;
}

body:not(.light-mode) .btn-secondary,
body:not(.light-mode) a.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: white !important;
}

.btn-secondary:hover,
a.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.35) !important;
    text-decoration: none !important;
}

/* Navigation button fixes */
.nav-item {
    background: transparent !important;
    border: none !important;
    color: #c4b5a0 !important;
    padding: 0.875rem 1.25rem !important;
    transition: all 0.3s ease !important;
}

.nav-item:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #8b5cf6 !important;
    transform: translateX(8px) !important;
}

/* Enhanced light mode forms */
.light-mode input,
.light-mode textarea,
.light-mode select {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    padding: 0.75rem !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.light-mode input:focus,
.light-mode textarea:focus,
.light-mode select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

.light-mode input::placeholder,
.light-mode textarea::placeholder {
    color: #94a3b8 !important;
}

/* Dark mode body styling */
body:not(.light-mode) {
    background-color: #1a202c;
    color: #f7fafc;
}

html:not(.light-mode) {
    background-color: #1a202c;
}

.no-underline-link,
.no-underline-link:visited,
.no-underline-link:hover,
.no-underline-link:active {
    text-decoration: none !important;
    color: #105fb9; /* or any color you want */
}
/* Widget Code Modal Styles */

/* Trigger Link (Optional Enhancement) */
.ucm-styled-link-button,
.ucm-styled-link-button:visited,
.ucm-styled-link-button:hover,
.ucm-styled-link-button:active {
    text-decoration: none !important;
    color: #fff !important;
}
.ucm-widget-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #10b981;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.ucm-widget-link:hover {
  background-color: #059669;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    animation: modalSlideIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Form Groups in Modal */
.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.modal-body .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.modal-body .form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-body .message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: none;
}

.modal-body .message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: block;
}

.modal-body .message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

/* Light mode adjustments */
.light-mode .modal {
    background-color: rgba(0, 0, 0, 0.4);
}

.light-mode .modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.light-mode .modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* Upgrade Modal Specific Styles */
.module-selection {
    margin: 20px 0;
}

.module-selection h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.modules-note {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.all-modules-option {
    margin-bottom: 25px;
}

.all-modules-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.all-modules-card h3 {
    color: white;
    margin-bottom: 10px;
}

.all-modules-card .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffd700;
    margin: 10px 0;
}

/* Individual Module Card Styling */
.all-modules-card.individual-module {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    margin-bottom: 1.5rem;
}

.all-modules-card.individual-module h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.all-modules-card.individual-module .price {
    color: #fbbf24;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 10px 0;
}

.contact-info {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.contact-info p:first-child {
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.contact-info i {
    margin-right: 0.5rem;
    width: 16px;
}

.modules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.module-option {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.module-info h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1rem;
}

.module-price {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 8px;
}

.module-info p:last-child {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Dark mode upgrade modal styles */
body:not(.light-mode) .module-selection h3 {
    color: #f7fafc;
}

body:not(.light-mode) .modules-note {
    background: #2d3748;
    color: #e2e8f0;
    border-left-color: #63b3ed;
}

body:not(.light-mode) .module-option {
    background: #2d3748;
    border-color: #4a5568;
}

body:not(.light-mode) .module-info h4 {
    color: #f7fafc;
}

body:not(.light-mode) .module-info p:last-child {
    color: #a0aec0;
}

/* Order Info Modal Styles */
.selected-module-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.selected-module-info h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
}

.service-id {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.order-steps {
    margin: 20px 0;
}

.order-steps h4 {
    color: #2d3748;
    margin-bottom: 15px;
}

.order-steps ol {
    padding-left: 20px;
}

.order-steps li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.order-steps strong {
    color: #2d3748;
}

.highlight-service-id {
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Dark mode order info styles */
body:not(.light-mode) .selected-module-info {
    background: #2d3748;
    border-left-color: #63b3ed;
}

body:not(.light-mode) .selected-module-info h4 {
    color: #f7fafc;
}

body:not(.light-mode) .service-id {
    color: #a0aec0;
}

body:not(.light-mode) .order-steps h4 {
    color: #f7fafc;
}

body:not(.light-mode) .order-steps strong {
    color: #f7fafc;
}

body:not(.light-mode) .highlight-service-id {
    background: #744210;
    color: #ffd700;
    border-color: #b7791f;
}

/* Filter Buttons Styling */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Filter Button Variants */
.btn-premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
}

.btn-premium:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
}

/* Active Filters Display */
.active-filters {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.filter-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.filter-badge.filter-premium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.filter-badge.filter-admin {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.filter-badge.filter-enabled {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.filter-badge.filter-disabled {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Light mode filter adjustments */
.light-mode .filter-badge.filter-premium {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.light-mode .filter-badge.filter-admin {
    background: rgba(234, 179, 8, 0.15);
    color: #ca8a04;
}

.light-mode .filter-badge.filter-enabled {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.light-mode .filter-badge.filter-disabled {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* Responsive Design for Filters */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .filter-buttons .btn {
        flex: 1;
        min-width: 0;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .active-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Modal Overlay */
.ucm-modal-overlay {
  display: none; 
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}


/* Modal Box */
.ucm-modal-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 640px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: ucm-fadeIn 0.3s ease-in-out;
}

/* Close Button */
.ucm-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ucm-modal-close:hover {
  color: #333;
}

/* Code Block */
.ucm-code-block {
  background-color: #f5f5f5;
  text-align: left;
  padding: 1rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  border: 1px solid #e1e1e1;
  color: #111 !important;
}

body:not(.light-mode) .ucm-code-block {
  color: #111 !important;
  background-color: #f5f5f5 !important;
}

/* Copy Button */
.ucm-copy-button {
  padding: 0.75rem 1.5rem;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ucm-copy-button:hover {
  background-color: #059669;
}

/* Fade in animation */
@keyframes ucm-fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.ucm-styled-link-button {
  padding: 0.75rem 1.2rem;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.ucm-styled-link-button:hover {
  background-color: #059669;
  text-decoration: none;
}

/* Optional: pre/code styling */
pre {
  background: #f3f4f6;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  text-align: left;
}


/* register page */

.register-link {
    display: inline-block;
    padding: 10px 18px;
    background-color: #007BFF;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.register-link:hover {
    background-color: #0056b3;
}


.register-container {
    width: 100%;
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.register-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: none !important;
    border-radius: 6px;
    color: white !important;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25) !important;
}

form button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35) !important;
}

/* Dark mode form buttons */
body:not(.light-mode) form button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25) !important;
}

body:not(.light-mode) form button:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35) !important;
}

/* Legacy hover styles replaced above */

/* Home button at the top */
.top-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.home-button {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.home-button:hover {
    background-color: #e7f1ff;
}

/* Error messages */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}
/* loading spinner */
.loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-left-color: #4a90e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px; /* or whatever looks good in your layout */
}

/* chatbot */
#cb-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 10px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  font-family: 'Segoe UI', sans-serif;
}

#cb-chat-box {
  flex-grow: 1;
  overflow-y: auto;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.cb-message {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.cb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 10px;
  color: #fff;
  margin-right: 10px;
  flex-shrink: 0;
  border: 2px solid #ddd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cb-avatar.cb-user {
  background-color: #4a90e2;
  color: #fff;
  border-color: #4a90e2;
}

.cb-avatar.cb-bot {
  background-color: #7b68ee;
  color: #fff;
  border-color: #7b68ee;
}

.cb-msg-content {
  background: #f8f9fa;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  flex: 1;
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cb-msg-content .cb-name {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cb-msg-content .cb-text {
  white-space: pre-wrap;
  line-height: 1.4;
  color: #333;
  font-size: 14px;
}

.cb-timestamp {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

#cb-input-area {
  display: flex;
  gap: 8px;
}

#cb-user-input {
  flex-grow: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
}

#cb-send-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background-color: #4a90e2;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

#cb-send-btn:hover {
  background-color: #3c7dc0;
}

/* 🎨 Enhanced Chat Styles - Typing Indicators & Status */

/* Typing Indicator Animation */
.cb-typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cb-typing-text {
  font-size: 13px;
  color: #666;
  font-style: italic;
}

.cb-typing-dots {
  display: flex;
  gap: 3px;
}

.cb-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #4a90e2;
  animation: cb-typing-bounce 1.4s infinite ease-in-out;
}

.cb-typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.cb-typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes cb-typing-bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Message Status Indicators */
.cb-status {
  margin-left: 5px;
  font-size: 10px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.cb-status-sending {
  color: #ffa500;
  animation: cb-pulse 1s infinite;
}

.cb-status-sent {
  color: #4a90e2;
}

.cb-status-delivered {
  color: #28a745;
}

@keyframes cb-pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Enhanced Message Types */
.cb-user-message .cb-msg-content {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  margin-left: auto;
  border-radius: 18px 18px 4px 18px;
}



.cb-user-message .cb-timestamp {
  text-align: right;
}


.cb-bot-message .cb-msg-content {
  background: #fff !important;
  border: 1px solid #e9ecef;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}



.cb-typing {
  opacity: 0.9;
}

.cb-typing .cb-msg-content {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  animation: cb-glow 2s ease-in-out infinite alternate;
}

@keyframes cb-glow {
  from { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
  to { box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2); }
}

/* Input Enhancement */
/* Force bot message text, typing text, and welcome message to black */
.cb-bot-message .cb-msg-content, 
.cb-bot-message .cb-msg-content .cb-text, 
.cb-bot-message .cb-msg-content .cb-text *,
.cb-typing .cb-msg-content, 
.cb-typing-text, 
.cb-bot-message .cb-msg-content .cb-name {
  color: #000 !important;
}
#cb-user-input:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

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

#cb-send-btn:disabled:hover {
  background-color: #ccc;
}

#cb-footer {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

/* 🎯 Enhanced Chatbot Styles - Complete Implementation */

/* Dynamic styling based on context */
body.cb-iframe-mode {
  margin: 0;
  padding: 0;
  background: transparent;
}

body.cb-iframe-mode #cb-container {
  height: calc(100vh - 30px);
  padding: 8px;
  background: #f9f9f9;
  border-radius: 0;
}

body.cb-iframe-mode #cb-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 8px;
  background: rgba(249, 249, 249, 0.95);
  font-size: 11px;
  color: #666;
  border-top: 1px solid #ddd;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

body.cb-iframe-mode #cb-footer a {
  color: #4a90e2;
  text-decoration: none;
}

body.cb-iframe-mode #cb-footer a:hover {
  text-decoration: underline;
}

body.cb-standalone-mode {
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

body.cb-standalone-mode #cb-container {
  max-width: 800px;
  height: 80vh;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: #fff;
}

body.cb-standalone-mode #cb-footer {
  text-align: center;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

body.cb-standalone-mode #cb-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

/* Enhanced Input Styling */
#cb-user-input:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
  outline: none;
}

#cb-send-btn {
  transition: background-color 0.3s ease, transform 0.1s ease;
}

#cb-send-btn:hover {
  transform: translateY(-1px);
}

#cb-send-btn:active {
  transform: translateY(0);
}

/* 🎯 Welcome Message Styling */

/* Force welcome message text to black for visibility */
.cb-welcome-message {
  animation: cb-fade-in 0.5s ease-in-out;
  color: #000 !important;
}

@keyframes cb-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Message Animations */
.cb-message {
  animation: cb-slide-in 0.3s ease-out;
}

@keyframes cb-slide-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cb-user-message {
  animation: cb-slide-in-right 0.3s ease-out;
}

@keyframes cb-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced Scrollbar Styling */
#cb-chat-box::-webkit-scrollbar {
  width: 6px;
}

#cb-chat-box::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#cb-chat-box::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
  transition: background 0.3s ease;
}

#cb-chat-box::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Enhanced Avatar Styling */
.cb-avatar {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cb-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Enhanced Message Content */
.cb-msg-content {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cb-msg-content:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.cb-loading {
  opacity: 0.7;
  pointer-events: none;
}

.cb-loading .cb-msg-content {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: cb-loading-shimmer 1.5s infinite;
}

@keyframes cb-loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Enhanced Typography */
.cb-msg-content .cb-text strong {
  color: #2c3e50;
  font-weight: 600;
}

.cb-msg-content .cb-text em {
  color: #7f8c8d;
  font-style: italic;
}

.cb-msg-content .cb-text code {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 480px) {
  #cb-container {
    padding: 5px;
  }
  
  .cb-avatar {
    width: 32px;
    height: 32px;
    font-size: 9px;
  }
  
  .cb-msg-content {
    max-width: 90%;
    padding: 8px 12px;
  }
  
  #cb-user-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Footer styling continuation */
#cb-footer {
  color: #aaa;
  margin-top: 8px;
}

#cb-footer a {
  color: #4a90e2;
  text-decoration: none;
}

#cb-footer a:hover {
  text-decoration: underline;
}

/* Chatbot Mobile Responsive Styles */
@media (max-width: 768px) {
  #cb-container {
    padding: 8px;
    height: 100vh; /* Maintain full height */
  }
  
  #cb-chat-box {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 15px; /* Slightly larger for mobile readability */
  }
  
  .cb-message {
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .cb-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
    flex-shrink: 0; /* Prevent avatar from shrinking */
  }
  
  .cb-msg-content {
    max-width: calc(100vw - 80px); /* Better width calculation for mobile */
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.4;
  }
  
  .cb-msg-content .cb-name {
    font-size: 13px;
    margin-bottom: 4px;
  }
  
  .cb-timestamp {
    font-size: 11px;
    margin-top: 6px;
  }
  
  #cb-input-area {
    gap: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  #cb-user-input {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 16px; /* Prevents zoom on iOS */
    border: 1px solid #e0e0e0;
    min-height: 20px;
  }
  
  #cb-send-btn {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    min-width: 60px;
    transition: all 0.2s ease;
  }
  
  #cb-send-btn:active {
    transform: scale(0.98);
  }
  
  #cb-footer {
    margin-top: 6px;
    font-size: 11px;
    padding: 4px;
  }
}

@media (max-width: 480px) {
  #cb-container {
    padding: 6px;
  }
  
  #cb-chat-box {
    padding: 8px;
    margin-bottom: 6px;
  }
  
  .cb-message {
    gap: 6px;
    margin-bottom: 10px;
  }
  
  .cb-avatar {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  
  .cb-msg-content {
    max-width: calc(100vw - 70px);
    padding: 8px 10px;
    font-size: 14px;
  }
  
  .cb-msg-content .cb-name {
    font-size: 12px;
  }
  
  #cb-input-area {
    gap: 4px;
    padding: 3px;
  }
  
  #cb-user-input {
    padding: 10px 12px;
    font-size: 16px;
  }
  
  #cb-send-btn {
    padding: 10px 12px;
    font-size: 13px;
    min-width: 50px;
  }
  
  #cb-footer {
    font-size: 10px;
    margin-top: 4px;
  }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  #cb-container {
    padding: 6px;
  }
  
  #cb-chat-box {
    padding: 8px;
  }
  
  .cb-message {
    margin-bottom: 8px;
  }
  
  .cb-msg-content {
    padding: 6px 10px;
    font-size: 14px;
  }
  
  #cb-input-area {
    padding: 2px;
  }
  
  #cb-user-input {
    padding: 8px 12px;
  }
  
  #cb-send-btn {
    padding: 8px 12px;
  }
}

/* Improve scrolling on mobile */
@media (max-width: 768px) {
  #cb-chat-box {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  /* Better message bubbles for mobile */
  .cb-msg-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Touch-friendly hover states */
  #cb-send-btn:hover {
    background-color: #3c7dc0;
  }
  
  /* Prevent text selection on UI elements */
  #cb-send-btn,
  .cb-avatar {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}

/* settings page */

/* General Page Layout */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
  color: #333;
}

.sp-settings-wrapper {
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

h1 {
  font-size: 24px;
  margin-bottom: 30px;
}

.sp-center {
  margin-top: 20px;
}

/* Button Styling */
.sp-btn {
  background: #2e86de;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sp-btn:hover {
  background: #226dba;
}

.sp-btn.cancel {
  background: #ccc;
  color: black;
}

/* Modal */
.sp-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.sp-modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  text-align: left;
}

.sp-modal-content label {
  display: block;
  margin: 10px 0 4px;
  font-weight: bold;
  font-size: 14px;
}

.sp-modal-content input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.sp-modal-actions {
  margin-top: 20px;
  text-align: right;
}

.sp-message {
  margin-top: 10px;
  font-size: 14px;
  color: red;
}


/* expiration box */

.expiration-box {
    margin: 1em 0;
    padding: 10px 15px;
    background-color: #fff8dc;
    border: 1px solid #e0c97d;
    border-radius: 10px;
    font-size: 1rem;
    color: #444;
}

/* Instruction box styling */
/* Modal button */
.instruction-image-button {
    margin-top: 16px;
    text-align: left;
}

.instruction-image-button button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.instruction-image-button button:hover {
    background-color: #e0e0e0;
}

/* Modal styles */
.instruction-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.instruction-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    text-align: center;
}

.instruction-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.instruction-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 28px;
    color: white;
    background: #444;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}


.minimal-instruction-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

.minimal-instruction-box h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.minimal-instruction-box ol {
    padding-left: 20px;
    margin: 0;
    font-size: 0.95rem;
}

.minimal-instruction-box li {
    margin-bottom: 10px;
}

.minimal-instruction-box a {
    color: #1a73e8;
    text-decoration: underline;
}

.instruction-image-container {
    margin-top: 15px;
    text-align: center;
}

.instruction-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}






body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 0;
}

.api-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 1.5rem;
}

.label-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.label-with-icon i {
  color: #555;
  font-size: 1rem;
}

.api-form input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.form-buttons {
  text-align: center;
  margin-top: 1rem;
}

.form-buttons button {
  margin: 0 6px;
  padding: 10px 14px;
  border: none;
  background-color: #007bff;
  color: white;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-buttons button:hover {
  background-color: #0056b3;
}



.container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h2 {
    text-align: center;
    color: #333;
}

#output .result {
    border: 1px solid #e0e0e0;
    margin: 12px 0;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#output h3 {
    margin: 0 0 8px;
    color: #007bff;
}

.copy-btn {
    margin-left: 5px;
    cursor: pointer;
    color: #007bff;
}

.top-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.top-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #6c757d;
    color: #fff;
    cursor: pointer;
}

.top-actions button:hover {
    background: #495057;
}

/* Theme toggle in top-actions */
.top-actions .theme-toggle {
    background: #6366f1 !important;
    transition: all 0.3s ease;
}

.top-actions .theme-toggle:hover {
    background: #5856eb !important;
    transform: scale(1.05);
}

.speed-up {
    color: green;
    font-weight: bold;
}

.cancel-partial {
    color: #d9534f;
    font-weight: bold;
}

/* Users Management */

body.manage-body {
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    padding: 20px;
}

.manage-container {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.manage-form input,
.manage-form button {
    padding: 8px;
    margin: 4px;
}

.manage-form input {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.manage-form button {
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
}

.manage-form button:hover {
    background: #45a049;
}

.manage-table {
    width: 100%;
    border-collapse: collapse;
    background: #fafafa;
}

.manage-table th,
.manage-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.manage-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4);
}

.manage-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 8px;
}

.manage-close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
}

.manage-close:hover,
.manage-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.manage-table tr.disabled-user {
    background-color: #f9d6d5;
    color: #999;
}

.disabled-user {
    background-color: #fbeaea;
    color: #999;
    font-style: italic;
}
.manage-table {
    table-layout: fixed; /* force fixed layout for predictable column widths */
}

.manage-table input,
.manage-table select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Pagination Styles */
.pagination-container {
    margin: 20px 0;
}

.pagination-btn {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

.pagination-btn.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-ellipsis {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    color: #6c757d;
}

.icon-left {
  color: #555;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}





.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.form-buttons button {
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    background: #007bff;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-buttons button:hover {
    background: #0056b3;
}

/* Form Actions Button Layout */
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    align-items: center;
}

.form-actions .btn {
    margin: 0;
    flex: 0 0 auto;
}

/* Mobile responsiveness for form actions */
@media (max-width: 768px) {
    .form-actions {
        gap: 8px;
    }
    
    .form-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
        flex: 1 1 auto;
    }
}

/* OUTPUT STYLING */

/* Result box container */
#output {
    margin-top: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Dark mode output container */
body:not(.light-mode) #output {
    background: transparent;
}

/* Each provider result */
.result {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-left: 5px solid #007bff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

.result:hover {
    transform: scale(1.01);
}

/* Provider name */
.result h3 {
    margin: 0 0 15px;
    font-size: 1.3rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Provider icon styling */
.result h3 .provider-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

/* Links */
.result h3 a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.result h3 a:hover {
    color: #0056b3;
    text-decoration: none;
    transform: translateY(-1px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Provider badge styling */
.provider-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(40,167,69,0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

body:not(.light-mode) .provider-badge {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
    color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(56,178,172,0.3);
}

/* Dark mode provider styling */
body:not(.light-mode) .result h3 {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-left-color: #63b3ed;
    color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

body:not(.light-mode) .result h3 .provider-icon {
    background: linear-gradient(135deg, #63b3ed 0%, #3182ce 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(99,179,237,0.3);
}

body:not(.light-mode) .result h3 a {
    color: #63b3ed;
}

body:not(.light-mode) .result h3 a:hover {
    color: #90cdf4;
    text-shadow: 0 1px 2px rgba(99,179,237,0.3);
}

/* Speed up and Cancel/Partial labels */
.result p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.result .speed-up {
    color: #28a745;
}

.result .cancel-partial {
    color: #dc3545;
}

/* Copy icon */
.copy-btn {
    margin-left: 8px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: #000;
}


/* CONTAINER RESPONSIVENESS */

.container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

@media (max-width: 500px) {
    .form-buttons {
        flex-direction: column;
    }
}


/* provider output */
.result {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
    transition: 0.3s ease;
}

.result:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.result .badge {
    background: #eee;
    color: #444;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-left: auto;
}

.result p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.result strong {
    color: #111;
    font-weight: 600;
}

.speed-up {
    color: #2e8b57;
}

.cancel-partial {
    color: #c0392b;
}

/* Results Summary Section */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.summary-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.summary-card.speed-up {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.summary-card.cancel {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-card.speed-up .summary-number {
    color: #28a745;
}

.summary-card.cancel .summary-number {
    color: #dc3545;
}

.summary-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsiveness for Results Summary */
@media (max-width: 768px) {
    .results-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .summary-card {
        padding: 15px 10px;
    }
    
    .summary-number {
        font-size: 2rem;
    }
    
    .summary-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .results-summary {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .summary-card {
        padding: 12px;
    }
    
    .summary-number {
        font-size: 1.8rem;
    }
}

/* Dark Mode Results Summary */
body:not(.light-mode) .results-summary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body:not(.light-mode) .summary-card {
    background: rgba(45, 55, 72, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.light-mode) .summary-card.speed-up {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2), rgba(72, 187, 120, 0.1));
    border: 2px solid rgba(72, 187, 120, 0.4);
}

body:not(.light-mode) .summary-card.cancel {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.2), rgba(245, 101, 101, 0.1));
    border: 2px solid rgba(245, 101, 101, 0.4);
}

body:not(.light-mode) .summary-number {
    color: #e2e8f0;
}

body:not(.light-mode) .summary-card.speed-up .summary-number {
    color: #48bb78;
}

body:not(.light-mode) .summary-card.cancel .summary-number {
    color: #f56565;
}

body:not(.light-mode) .summary-label {
    color: #a0aec0;
}

/* Dark Mode Result Cards */
body:not(.light-mode) .result {
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

body:not(.light-mode) .result h3 {
    color: #f7fafc;
}

body:not(.light-mode) .result h3 a {
    color: #63b3ed;
}

body:not(.light-mode) .result strong {
    color: #f7fafc;
}

/* Enhanced dark mode result text styling */
body:not(.light-mode) .result p {
    color: #e2e8f0;
}

body:not(.light-mode) .result .speed-up {
    color: #68d391;
    font-weight: 600;
}

body:not(.light-mode) .result .cancel-partial {
    color: #fc8181;
    font-weight: 600;
}

body:not(.light-mode) .copy-btn {
    color: #a0aec0;
}

body:not(.light-mode) .copy-btn:hover {
    color: #e2e8f0;
}

/* Enhanced light mode result text styling */
.light-mode .result .speed-up {
    color: #059669;
    font-weight: 600;
}

.light-mode .result .cancel-partial {
    color: #dc2626;
    font-weight: 600;
}

/* Order ID styling for better readability */
.order-id {
    background: #f3f4f6;
    color: #374151;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    margin: 2px;
    display: inline-block;
    border: 1px solid #d1d5db;
}

body:not(.light-mode) .order-id {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}

/* Order section styling */
.order-section {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
}

body:not(.light-mode) .order-section {
    background: #2d3748;
    border-left-color: #4a5568;
}

.order-section.speed-up {
    border-left-color: #28a745;
}

.order-section.cancel-partial {
    border-left-color: #dc3545;
}

body:not(.light-mode) .order-section.speed-up {
    border-left-color: #68d391;
}

body:not(.light-mode) .order-section.cancel-partial {
    border-left-color: #fc8181;
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-title {
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.copy-all-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-all-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.copy-all-btn.speed-up {
    background: #28a745;
}

.copy-all-btn.speed-up:hover {
    background: #218838;
}

.copy-all-btn.cancel-partial {
    background: #dc3545;
}

.copy-all-btn.cancel-partial:hover {
    background: #c82333;
}

body:not(.light-mode) .copy-all-btn {
    background: #4a5568;
}

body:not(.light-mode) .copy-all-btn:hover {
    background: #2d3748;
}

body:not(.light-mode) .copy-all-btn.speed-up {
    background: #38a169;
}

body:not(.light-mode) .copy-all-btn.speed-up:hover {
    background: #2f855a;
}

body:not(.light-mode) .copy-all-btn.cancel-partial {
    background: #e53e3e;
}

body:not(.light-mode) .copy-all-btn.cancel-partial:hover {
    background: #c53030;
}

.order-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

/* Enhanced Order ID Styling for Dark Mode */
body:not(.light-mode) .result {
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

body:not(.light-mode) .result:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    border-color: #63b3ed;
}

/* Order ID specific styling */
.order-id {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.9em;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

body:not(.light-mode) .order-id {
    background: rgba(99, 179, 237, 0.15);
    color: #90cdf4;
    border-color: rgba(99, 179, 237, 0.3);
}

/* Enhanced result text styling */
.result p {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
}

body:not(.light-mode) .result p {
    color: #e2e8f0;
}

/* Order list styling */
.order-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.order-list .order-id {
    margin: 0;
}

/* Enhanced copy button */
.copy-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

body:not(.light-mode) .copy-btn {
    background: rgba(99, 179, 237, 0.15);
    border-color: rgba(99, 179, 237, 0.3);
    color: #90cdf4;
}

body:not(.light-mode) .copy-btn:hover {
    background: rgba(99, 179, 237, 0.25);
    color: #e2e8f0;
}

/* Enhanced Result Section Headers */
.result-section {
    margin-bottom: 8px;
}

.result-section strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    margin-bottom: 6px;
}

.result-section strong::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 2px;
}

.speed-up strong::before {
    background: #22c55e;
}

.cancel-partial strong::before {
    background: #ef4444;
}

body:not(.light-mode) .speed-up strong::before {
    background: #68d391;
}

body:not(.light-mode) .cancel-partial strong::before {
    background: #fc8181;
}

/* Result container improvements */
.result {
    position: relative;
    overflow: hidden;
}

.result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result:hover::before {
    opacity: 1;
}

/* Provider badge styling */
.provider-badge {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 1px solid #d1d5db;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    color: #6b7280;
    margin-left: auto;
}

body:not(.light-mode) .provider-badge {
    background: linear-gradient(135deg, #374151, #4b5563);
    border-color: #6b7280;
    color: #d1d5db;
}

/* Fix standard user text color in light mode */
.light-mode .user-type-standard {
    color: #1a202c !important;
}

.light-mode .users-table .user-type-standard {
    color: #2d3748 !important;
}

.copy-btn {
    color: #aaa;
    margin-left: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.copy-btn:hover {
    color: #000;
}


label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* Modern Minimalist UI Design */

/* Global Layout */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

/* Mobile Menu Toggle - Override global styles */
.mobile-menu-toggle {
    display: none !important;
    position: fixed !important;
    top: 1rem !important;
    left: 1rem !important;
    z-index: 1001 !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    width: 48px !important;
    height: 48px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    padding: 0 !important;
    min-height: 48px !important;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
}

.mobile-menu-toggle i {
    font-size: 1.3rem !important;
    color: white !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure icon is visible in all modes */
.light-mode .mobile-menu-toggle i,
body:not(.light-mode) .mobile-menu-toggle i {
    color: white !important;
    font-size: 1.3rem !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Light mode mobile toggle */
.light-mode .mobile-menu-toggle {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    color: white !important;
    border: 2px solid rgba(30, 64, 175, 0.3) !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4) !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

.light-mode .mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.5) !important;
}

.light-mode .mobile-menu-toggle i {
    color: white !important;
    font-size: 1.3rem !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Dark mode mobile toggle */
body:not(.light-mode) .mobile-menu-toggle {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
    color: white !important;
}

/* Mobile Close Button (inside sidebar) */
.mobile-close-btn {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1003;
  background: rgba(220, 38, 38, 0.8) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Light mode close button styling */
.light-mode .mobile-close-btn {
  background: rgba(239, 68, 68, 0.9) !important;
  color: white !important;
  border: 2px solid rgba(239, 68, 68, 0.3) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

.light-mode .mobile-close-btn:hover {
  background: rgba(239, 68, 68, 1) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5) !important;
}

.light-mode .mobile-close-btn i {
  color: white !important;
  font-size: 1rem !important;
}

.mobile-close-btn:hover {
  background: rgba(220, 38, 38, 1) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
}

.mobile-close-btn i {
  font-size: 1rem;
  color: white !important;
}

/* Theme Toggle in Header */
.theme-toggle-header {
  font-size: 1rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.theme-toggle-header:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
}

.theme-toggle-header i {
  color: white !important;
  font-size: 1rem !important;
}

/* Light mode theme toggle */
.light-mode .theme-toggle-header {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
}

.light-mode .theme-toggle-header:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

/* Show mobile close button on mobile devices */
@media (max-width: 768px) {
  .mobile-close-btn {
    display: flex;
  }
  
  /* Show mobile menu toggle button on mobile */
  .mobile-menu-toggle {
    display: flex !important;
  }
}

.app-container {
  display: flex;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Left Sidebar Navigation */
.sidebar {
  width: 280px;
  background: linear-gradient(145deg, #1e293b 0%, #334155 30%, #475569 70%, #334155 100%);
  color: #e5e5e5;
  padding: 0;
  box-shadow: 
    4px 0 30px rgba(0, 0, 0, 0.4),
    inset -1px 0 0 rgba(148, 163, 184, 0.1);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  border-right: 2px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Light mode sidebar styling */
.light-mode .sidebar {
  background: linear-gradient(145deg, 
    #f8fafc 0%, 
    #e2e8f0 25%, 
    #cbd5e1 50%, 
    #e2e8f0 75%, 
    #f8fafc 100%) !important;
  color: #1e293b !important;
  box-shadow: 
    4px 0 30px rgba(71, 85, 105, 0.3),
    inset -1px 0 0 rgba(51, 65, 85, 0.2) !important;
  border-right: 3px solid rgba(51, 65, 85, 0.3) !important;
}

.light-mode .sidebar::before {
  background: linear-gradient(90deg, #64748b 0%, #475569 50%, #64748b 100%) !important;
  box-shadow: 0 0 15px rgba(100, 116, 139, 0.6) !important;
  height: 4px !important;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #64748b 0%, #475569 50%, #64748b 100%);
  box-shadow: 0 0 10px rgba(100, 116, 139, 0.5);
}

.sidebar-header {
  padding: 3rem 2rem 2.5rem 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: 
    linear-gradient(135deg, rgba(148, 163, 184, 0.03) 0%, rgba(100, 116, 139, 0.02) 100%),
    rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* Light mode sidebar header */
.light-mode .sidebar-header {
  border-bottom: 1px solid rgba(51, 65, 85, 0.2) !important;
  background: 
    linear-gradient(135deg, rgba(51, 65, 85, 0.08) 0%, rgba(71, 85, 105, 0.05) 100%),
    rgba(148, 163, 184, 0.1) !important;
}

.light-mode .sidebar-header::before {
  background: radial-gradient(circle, rgba(51, 65, 85, 0.15) 0%, transparent 70%) !important;
}

.sidebar-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.1) 0%, transparent 70%);
  animation: luxuryGlow 4s ease-in-out infinite alternate;
}

@keyframes luxuryGlow {
  0% { transform: rotate(0deg) scale(1); opacity: 0.3; }
  100% { transform: rotate(180deg) scale(1.1); opacity: 0.1; }
}

.user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #64748b 0%, #475569 30%, #334155 70%, #64748b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  box-shadow: 
    0 0 30px rgba(100, 116, 139, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 3px solid rgba(148, 163, 184, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.user-avatar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: avatarShine 3s infinite;
}

@keyframes avatarShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 
    0 0 40px rgba(100, 116, 139, 0.6),
    0 12px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.user-info {
  width: 100%;
}

.user-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(148, 163, 184, 0.2);
  letter-spacing: 0.5px;
}

.user-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  padding: 2.5rem 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 200px);
  padding-right: 5px;
}

/* Custom scrollbar for navigation */
.nav-menu::-webkit-scrollbar {
  width: 6px;
}

.nav-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.nav-menu::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* Light mode scrollbar */
.light-mode .nav-menu::-webkit-scrollbar-track {
  background: rgba(51, 65, 85, 0.1);
}

.light-mode .nav-menu::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.3);
}

.light-mode .nav-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(51, 65, 85, 0.5);
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 1.2rem 2rem;
  color: #cbd5e1;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  margin: 0.2rem 0;
  letter-spacing: 0.5px;
  border-radius: 8px;
}

.nav-item:hover {
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
  transform: translateX(8px);
}

.nav-item:focus {
  text-decoration: none !important;
  outline: none !important;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  transform: scaleY(0);
  transition: all 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.nav-item:hover::before {
  transform: scaleY(1);
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
  transform: scaleY(0);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(100, 116, 139, 0.3);
}

.nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.03) 50%, 
    transparent 100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
  text-decoration: none !important;
}

.nav-item:hover::before {
  transform: scaleY(1);
}

.nav-item i {
  width: 24px;
  height: 24px;
  margin-right: 1.2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.nav-item:hover i {
  color: #e2e8f0;
  transform: scale(1.15);
  text-shadow: none;
}

/* Light mode navigation and user profile styling */
.light-mode .user-avatar {
  background: linear-gradient(135deg, #334155 0%, #475569 30%, #64748b 70%, #334155 100%) !important;
  color: #ffffff !important;
  box-shadow: 
    0 0 30px rgba(51, 65, 85, 0.6),
    0 8px 25px rgba(71, 85, 105, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  border: 3px solid rgba(51, 65, 85, 0.5) !important;
}

.light-mode .user-avatar:hover {
  box-shadow: 
    0 0 40px rgba(51, 65, 85, 0.8),
    0 12px 35px rgba(71, 85, 105, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.light-mode .user-info h3 {
  color: #1e293b !important;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 0 10px rgba(51, 65, 85, 0.3) !important;
}

.light-mode .user-info p {
  color: #475569 !important;
}

.light-mode .nav-item {
  color: #475569 !important;
}

.light-mode .nav-item:hover {
  background: rgba(51, 65, 85, 0.1) !important;
  color: #1e293b !important;
}

.light-mode .nav-item::before {
  background: linear-gradient(135deg, #334155 0%, #475569 100%) !important;
}

.light-mode .nav-item:hover i {
  color: #1e293b !important;
}

/* Theme Toggle Button */
.theme-toggle {
    border-top: 1px solid rgba(255, 215, 0, 0.1) !important;
    margin-top: 1rem !important;
    position: relative;
    background: rgba(59, 130, 246, 0.1) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

/* ===== TICKET MARKETING SPECIFIC STYLES ===== */
/* Unique prefix: tm-* (ticket marketing) */

/* Content Box - styled like home page welcome section */
.tm-content-box {
    background: rgba(55, 65, 81, 0.8);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid #4b5563;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tm-content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Light mode content box */
.light-mode .tm-content-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(219, 234, 254, 0.9) 100%) !important;
    border: 2px solid rgba(30, 64, 175, 0.2) !important;
    box-shadow: 
        0 8px 32px rgba(30, 64, 175, 0.15),
        0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

.light-mode .tm-content-box:hover {
    box-shadow: 
        0 12px 40px rgba(30, 64, 175, 0.2),
        0 6px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Ticket Marketing Container - Full Width Layout like Home Page */
.tm-container {
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
    transition: all 0.3s ease;
}

/* Header Section - Match Home Page Style */
.tm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0 1rem 0;
    background: transparent;
    border-radius: 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}

.tm-header-title {
    color: var(--text-primary) !important;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tm-theme-toggle {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
    font-size: 1.1rem !important;
    backdrop-filter: none !important;
}

.tm-theme-toggle:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
    background: var(--gradient-primary) !important;
}

/* Usage Box */
.tm-usage-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    margin: 0 0 1.5rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.tm-usage-title {
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
    padding-bottom: 0.5rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tm-usage-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tm-usage-numbers {
    display: flex;
    gap: 2rem;
}

.tm-usage-stat {
    text-align: center;
}

.tm-usage-number {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    color: white;
}

.tm-usage-label {
    opacity: 0.8;
    font-size: 0.8rem;
    color: white;
}

.tm-usage-status {
    text-align: right;
}

.tm-status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tm-status-limit {
    background: rgba(255, 107, 107, 0.3);
    color: white;
}

.tm-status-warning {
    background: rgba(255, 217, 61, 0.3);
    color: white;
}

.tm-status-available {
    background: rgba(107, 207, 127, 0.3);
    color: white;
}

.tm-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.tm-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: var(--progress-width, 0%);
}

.tm-progress-fill.danger {
    background: #ff6b6b;
}

.tm-progress-fill.warning {
    background: #ffd93d;
}

.tm-progress-fill.success {
    background: #6bcf7f;
}

.tm-usage-message {
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.9;
    color: white;
}

/* Form Sections */
.tm-form-section {
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.tm-form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--primary-color);
}

.tm-section-title {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Collapsible API Section */
.tm-collapsible-section {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tm-collapsible-header {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-collapsible-header:hover {
    background: rgba(99, 102, 241, 0.05);
}

.tm-collapsible-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tm-toggle-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.tm-toggle-icon.expanded {
    transform: rotate(180deg);
}

.tm-collapsible-content {
    padding: 1.5rem;
    display: none;
}

.tm-collapsible-content.expanded {
    display: block;
    animation: tm-slideDown 0.3s ease-out;
}

@keyframes tm-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Elements */
.tm-form-group {
    margin-bottom: 1rem;
}

.tm-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.tm-form-input,
.tm-form-textarea,
.tm-form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tm-form-input:focus,
.tm-form-textarea:focus,
.tm-form-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.tm-form-input::placeholder,
.tm-form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.tm-form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    border: 2px solid #d1d5db !important; /* Ensure border is applied */
}

.tm-form-help {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Modern Select Dropdown - Clean and Simple */
.tm-form-select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236366f1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5rem;
    padding-right: 3rem;
    min-height: 64px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tm-form-select:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.tm-form-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.tm-form-select option {
    padding: 1rem;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.95rem;
}

/* Dark mode select styling */
body:not(.light-mode) .tm-form-select {
    background: #374151;
    border-color: #4b5563;
    color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236366f1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

body:not(.light-mode) .tm-form-select:hover {
    border-color: #6366f1;
    background: #4b5563;
}

body:not(.light-mode) .tm-form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

body:not(.light-mode) .tm-form-select option {
    background: #374151;
    color: #ffffff;
}

/* Dark mode form elements */
body:not(.light-mode) .tm-form-input,
body:not(.light-mode) .tm-form-textarea,
body:not(.light-mode) .tm-form-select {
    border-color: #4b5563;
    background: #374151;
    color: #ffffff;
}

body:not(.light-mode) .tm-form-input:focus,
body:not(.light-mode) .tm-form-textarea:focus,
body:not(.light-mode) .tm-form-select:focus {
    border-color: #6366f1;
}

/* Light mode adjustments */
.light-mode .tm-dropdown-button {
    background: #374151;
    border-color: rgba(99, 102, 241, 0.3);
    color: #ffffff !important;
}

.light-mode .tm-dropdown-button:hover {
    background: #4B5563;
    color: #ffffff !important;
}

.light-mode .tm-dropdown-menu {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.4);
}

/* Loading and Processing States */
.tm-loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.tm-loading-spinner.show {
    display: block;
    animation: tm-fadeIn 0.3s ease-out;
}

.tm-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: tm-spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Processing status containers - hidden by default */
#fetchingStatusContainer,
#processingStatusContainer,
.results-container {
    display: none !important;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Show processing containers only when processing */
body.processing #fetchingStatusContainer,
body.processing #processingStatusContainer,
body.processing .results-container {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

/* Manual Username Input */
.tm-manual-input {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    display: none;
}

.tm-manual-input.show {
    display: block;
    animation: tm-slideDown 0.3s ease-out;
}

/* Button Styles */
.tm-button-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.tm-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px var(--shadow-color);
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.tm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tm-btn:hover::before {
    left: 100%;
}

.tm-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.tm-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.tm-btn-primary:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.tm-btn-danger,
#stopProcessingBtn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    display: none !important; /* Hidden by default */
    visibility: hidden !important; /* Extra hiding */
    opacity: 0 !important; /* Extra hiding */
}

/* Show stop processing button only when processing */
body.processing .tm-btn-danger,
body.processing #stopProcessingBtn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: tm-slideInRight 0.3s ease-out;
}

.tm-btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.tm-btn-danger.show {
    display: inline-flex;
    animation: tm-slideInRight 0.3s ease-out;
}

@keyframes tm-slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.tm-btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.tm-btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

/* Alert Styles */
.tm-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
    line-height: 1.5;
    animation: tm-slideInDown 0.3s ease-out;
}

@keyframes tm-slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}

.tm-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error-color);
}

.tm-alert-info {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
}

.tm-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning-color);
}

/* Dark Mode Adjustments */
body:not(.light-mode) .tm-header {
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
}

body:not(.light-mode) .tm-usage-box {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

body:not(.light-mode) .tm-collapsible-header {
    background: var(--bg-tertiary);
}

body:not(.light-mode) .tm-collapsible-header:hover {
    background: rgba(99, 102, 241, 0.1);
}

body:not(.light-mode) .tm-dropdown-button:hover {
    background: rgba(99, 102, 241, 0.1);
}

body:not(.light-mode) .tm-dropdown-option:hover {
    background: rgba(99, 102, 241, 0.15);
}

body:not(.light-mode) .tm-manual-input {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tm-container {
        margin: 0.5rem;
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .tm-header {
        margin: -0.75rem -0.75rem 1rem -0.75rem;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tm-header-title {
        font-size: 1.5rem;
    }
    
    .tm-usage-numbers {
        gap: 1rem;
    }
    
    .tm-button-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tm-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile-specific dropdown improvements */
    .tm-dropdown-button {
        padding: 1rem;
        min-height: 56px;
        font-size: 0.85rem;
    }
    
    .tm-dropdown-menu {
        max-height: 240px;
    }
    
    .tm-dropdown-option {
        padding: 1rem;
    }
    
    .tm-option-title {
        font-size: 0.9rem;
    }
    
    .tm-option-desc {
        font-size: 0.75rem;
    }
    
    /* Content box mobile adjustments */
    .tm-content-box {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .tm-container {
        margin: 0.25rem;
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    .tm-header {
        margin: -0.5rem -0.5rem 0.75rem -0.5rem;
        padding: 0.75rem;
    }
    
    .tm-header-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tm-theme-toggle {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }
    
    .tm-form-section {
        padding: 1rem;
    }
    
    .tm-usage-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tm-usage-numbers {
        justify-content: center;
    }
}.theme-toggle::before {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
}

.theme-toggle:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #8b5cf6 !important;
  border-color: rgba(139, 92, 246, 0.5) !important;
  transform: translateY(-1px) !important;
}

.theme-toggle:hover i {
  color: #8b5cf6 !important;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.4) !important;
}

/* Small Theme Toggle Button */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  color: #e2e8f0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem auto 0 auto;
  font-size: 0.9rem;
}

.theme-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.3) !important;
  color: #8b5cf6 !important;
  border-color: rgba(139, 92, 246, 0.6) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.nav-logout {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.1) 100%);
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 1.5rem;
  max-width: calc(100% - 280px);
  background: transparent;
  min-height: 100vh;
  transition: all 0.3s ease;
  
}

/* Light mode main content styling */
.light-mode .main-content {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(99, 102, 241, 0.01) 50%, rgba(139, 92, 246, 0.02) 100%) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: 1rem;
    padding-top: 4rem; /* Account for mobile menu button */
  }
  
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Light mode content header styling */
.light-mode .content-header {
  border-bottom: 1px solid rgba(59, 130, 246, 0.15) !important;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
  border-radius: 12px;
  padding: 1.5rem 1rem 1rem 1rem;
  margin-bottom: 2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobile responsive header */
@media (max-width: 768px) {
  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .page-title {
    font-size: 1.5rem !important;
  }
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-subtitle {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
  font-weight: 400;
}

/* Account Type Badge Styling */
.account-type-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
  backdrop-filter: blur(10px);
  margin-right: 0.75rem;
}

.account-type-badge i {
  font-size: 1rem;
  color: #94a3b8;
}

.account-type {
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-type.admin {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #1a1a1a;
  box-shadow: 
    0 2px 8px rgba(251, 191, 36, 0.4),
    0 0 20px rgba(251, 191, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(251, 191, 36, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  animation: adminGlow 3s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

.account-type.admin::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: adminShine 4s infinite;
}

@keyframes adminGlow {
  0% { 
    box-shadow: 
      0 2px 8px rgba(251, 191, 36, 0.4),
      0 0 20px rgba(251, 191, 36, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  100% { 
    box-shadow: 
      0 4px 12px rgba(251, 191, 36, 0.6),
      0 0 30px rgba(251, 191, 36, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

@keyframes adminShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.account-type.premium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.account-type.standard {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* Light mode standard user text fix */
.light-mode .account-type.standard {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white !important;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* Light mode account type badge */
.light-mode .account-type-badge {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1e293b;
}

.light-mode .account-type-badge i {
  color: #3b82f6;
}

/* General text styling for lists and content */
.welcome-section ul {
  color: #374151;
  line-height: 1.6;
}

.welcome-section li {
  margin-bottom: 0.5rem;
  color: #374151;
}

.welcome-section a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.welcome-section a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Dark mode text styling */
body:not(.light-mode) .welcome-section ul,
body:not(.light-mode) .welcome-section li {
  color: #d1d5db !important;
}

body:not(.light-mode) .welcome-section a {
  color: #60a5fa !important;
}

body:not(.light-mode) .welcome-section a:hover {
  color: #93c5fd !important;
}

/* Light mode text styling */
.light-mode .welcome-section ul,
.light-mode .welcome-section li {
  color: #1f2937 !important;
}

.light-mode .welcome-section a {
  color: #2563eb !important;
}

.light-mode .welcome-section a:hover {
  color: #1d4ed8 !important;
}

/* Due date badge styling */
.due-date-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 0.75rem;
  backdrop-filter: blur(10px);
}

.due-date-badge i {
  color: #3b82f6;
}

/* Dark mode due date badge */
body:not(.light-mode) .due-date-badge {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.3);
  color: #e2e8f0;
}

body:not(.light-mode) .due-date-badge i {
  color: #a5b4fc;
}

/* Dark mode styles for page subtitle */
.page-subtitle {
  color: #cbd5e1;
}

.content-section {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.theme-toggle-header {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  border: 2px solid rgba(59, 130, 246, 0.4);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle-header:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.6);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.due-date-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5); }
}

/* Welcome Section */
.welcome-section {
  background: rgba(55, 65, 81, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid #4b5563;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.welcome-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Light mode welcome section enhancement */
.light-mode .welcome-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(219, 234, 254, 0.9) 100%) !important;
  border: 2px solid rgba(30, 64, 175, 0.2) !important;
  box-shadow: 
    0 8px 32px rgba(30, 64, 175, 0.15),
    0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

.light-mode .welcome-section:hover {
  box-shadow: 
    0 12px 40px rgba(30, 64, 175, 0.2),
    0 6px 8px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(30, 64, 175, 0.3) !important;
  transform: translateY(-3px) !important;
}

.welcome-message {
  font-size: 1.1rem;
  color: #d1d5db;
  margin: 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 12px;
  border-left: 4px solid #8b5cf6;
}

/* Light mode welcome message */
.light-mode .welcome-message {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%) !important;
  color: #1e293b !important;
  border-left-color: #3b82f6 !important;
}

/* Mobile responsive welcome section */
@media (max-width: 768px) {
  .welcome-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .welcome-message {
    font-size: 1rem;
    padding: 0.75rem;
  }
}

/* Provider Checker Section */
.checker-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: #6366f1;
}

/* Dark mode section title */
body:not(.light-mode) .section-title {
  color: #f1f5f9 !important;
}

body:not(.light-mode) .section-title i {
  color: #a855f7 !important;
}

/* Light mode section title */
.light-mode .section-title {
  color: #0f172a !important;
}

.light-mode .section-title i {
  color: #1e40af !important;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-label i {
  color: #6366f1;
  font-size: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dark mode form styling */
body:not(.light-mode) .form-label {
  color: #d1d5db !important;
}

body:not(.light-mode) .form-label i {
  color: #8b5cf6 !important;
}

body:not(.light-mode) .form-input {
  background: #374151 !important;
  border-color: #4b5563 !important;
  color: #f9fafb !important;
}

body:not(.light-mode) .form-input:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

/* Light mode form styling */
.light-mode .form-label {
  color: #0f172a !important;
  font-weight: 600 !important;
}

.light-mode .form-label i {
  color: #1e40af !important;
}

.light-mode .form-input {
  background: #ffffff !important;
  border-color: rgba(30, 64, 175, 0.3) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 6px rgba(30, 64, 175, 0.1) !important;
}

.light-mode .form-input:focus {
  border-color: #1e40af !important;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2) !important;
}

/* Usage Cards Styling for Settings Page */
.usage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.usage-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.usage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.usage-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.usage-details h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.usage-details .usage-count {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

/* Dark mode usage cards */
body:not(.light-mode) .usage-card {
  background: rgba(55, 65, 81, 0.8) !important;
  border-color: #4b5563 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body:not(.light-mode) .usage-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

body:not(.light-mode) .usage-icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
}

body:not(.light-mode) .usage-details h4 {
  color: #d1d5db !important;
}

body:not(.light-mode) .usage-details .usage-count {
  color: #f9fafb !important;
}

/* Light mode usage cards */
.light-mode .usage-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08) !important;
}

.light-mode .usage-card:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}

.light-mode .usage-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

.light-mode .usage-details h4 {
  color: #1f2937 !important;
}

/* Feature Expiration Cards Styling */
.feature-expiration-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.expiration-title {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.expiration-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.expiration-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.expiration-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.expiration-card.warning {
  border-color: #f59e0b;
  background: rgba(251, 191, 36, 0.05);
}

.expiration-card.expired {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.expiration-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.expiration-card.warning .expiration-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.expiration-card.expired .expiration-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.expiration-details h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expiration-details .expiration-date {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.expiration-status {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expiration-status.active {
  background: #dcfce7;
  color: #166534;
}

.expiration-status.warning {
  background: #fef3c7;
  color: #92400e;
}

.expiration-status.expired {
  background: #fee2e2;
  color: #991b1b;
}

/* Dark mode expiration cards */
body:not(.light-mode) .feature-expiration-section {
  border-top-color: #4b5563;
}

body:not(.light-mode) .expiration-title {
  color: #d1d5db;
}

body:not(.light-mode) .expiration-card {
  background: rgba(55, 65, 81, 0.8) !important;
  border-color: #4b5563 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body:not(.light-mode) .expiration-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

body:not(.light-mode) .expiration-card.warning {
  border-color: #f59e0b !important;
  background: rgba(251, 191, 36, 0.1) !important;
}

body:not(.light-mode) .expiration-card.expired {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

body:not(.light-mode) .expiration-details h4 {
  color: #d1d5db !important;
}

body:not(.light-mode) .expiration-details .expiration-date {
  color: #9ca3af !important;
}

body:not(.light-mode) .expiration-status.active {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #86efac !important;
}

body:not(.light-mode) .expiration-status.warning {
  background: rgba(251, 191, 36, 0.2) !important;
  color: #fbbf24 !important;
}

body:not(.light-mode) .expiration-status.expired {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #fca5a5 !important;
}

/* Light mode expiration cards */
.light-mode .feature-expiration-section {
  border-top-color: rgba(59, 130, 246, 0.15) !important;
}

.light-mode .expiration-title {
  color: #1f2937 !important;
}

.light-mode .expiration-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08) !important;
}

.light-mode .expiration-card:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}

.light-mode .expiration-card.warning {
  border-color: #f59e0b !important;
  background: rgba(251, 191, 36, 0.08) !important;
}

.light-mode .expiration-card.expired {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.light-mode .usage-details .usage-count {
  color: #111827 !important;
}

/* Reset Information Styling */
.reset-info {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.reset-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.reset-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.reset-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(139,92,246,0.3);
}

.reset-details h4 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
}

.reset-details .reset-date {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #8b5cf6;
}

.reset-details .reset-note {
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
}

/* Dark mode reset info */
body:not(.light-mode) .reset-card {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-color: #4b5563;
}

body:not(.light-mode) .reset-details h4 {
  color: #e5e7eb;
}

body:not(.light-mode) .reset-details .reset-date {
  color: #a78bfa;
}

body:not(.light-mode) .reset-details .reset-note {
  color: #9ca3af;
}

/* Mobile responsive usage cards */
@media (max-width: 768px) {
  .usage-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .usage-card {
    padding: 1rem;
  }
  
  .usage-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Remove any chatbot-specific text color and font-weight styles from this file. All chat bubble appearance should be controlled by chat-widget-bubble.css. */

.cb-user-message .cb-msg-content,
.cb-user-message .cb-msg-content .cb-name,
.cb-user-message .cb-timestamp,
.cb-bot-message .cb-msg-content,
.cb-bot-message .cb-msg-content .cb-text,
.cb-bot-message .cb-msg-content .cb-name,
.cb-typing .cb-msg-content,
.cb-typing .cb-name,
.cb-welcome-message {
  color: unset !important;
  font-weight: normal !important;
}

/* Enhanced Modal Overlay and Action Button Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease-out;
}

.modal-overlay.show {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 0;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95);
  animation: modalSlideIn 0.3s ease-out forwards;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-bottom: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2,
.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}

.modal-header i {
  font-size: 1.1rem;
  opacity: 0.9;
  color: white;
}

.close,
.modal-close {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover,
.modal-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer,
.modal-actions {
  padding: 1.5rem 2rem;
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Form styling within modals */
.modal-body .form-group {
  margin-bottom: 1.5rem;
}

.modal-body .form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.modal-body .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modal-body .form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-body .message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: none;
}

.modal-body .message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
  display: block;
}

.modal-body .message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}

/* Action buttons in modal footer */
.modal-footer .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.modal-footer .btn-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

.modal-footer .btn-secondary:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

/* Light mode modal adjustments */
.light-mode .modal-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.light-mode .modal-content {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 
    0 25px 50px -12px rgba(71, 85, 105, 0.3),
    0 0 0 1px rgba(71, 85, 105, 0.1);
  border: 1px solid rgba(71, 85, 105, 0.15);
}

.light-mode .modal-header {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.light-mode .modal-body {
  background: rgba(255, 255, 255, 0.98);
}

.light-mode .modal-footer,
.light-mode .modal-actions {
  background: rgba(248, 250, 252, 0.98);
  border-top: 1px solid rgba(71, 85, 105, 0.1);
}

.light-mode .modal-body .form-input {
  border-color: rgba(71, 85, 105, 0.3);
  box-shadow: 0 1px 3px rgba(71, 85, 105, 0.1);
}

.light-mode .modal-body .form-input:focus {
  border-color: #334155;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.light-mode .modal-footer .btn-primary,
.light-mode .modal-actions .btn-primary {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.light-mode .modal-footer .btn-primary:hover,
.light-mode .modal-actions .btn-primary:hover {
  background: linear-gradient(135deg, #475569 0%, #64748b 100%);
  box-shadow: 0 4px 8px rgba(71, 85, 105, 0.3);
}

/* Dark mode modal adjustments */
body:not(.light-mode) .modal-content {
  background: rgba(31, 41, 55, 0.95);
  border: 1px solid rgba(75, 85, 99, 0.3);
}

body:not(.light-mode) .modal-header {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
}

body:not(.light-mode) .modal-body {
  background: rgba(31, 41, 55, 0.95);
  color: #f9fafb;
}

body:not(.light-mode) .modal-footer {
  background: rgba(17, 24, 39, 0.95);
  border-top: 1px solid rgba(75, 85, 99, 0.3);
}

body:not(.light-mode) .modal-body .form-label {
  color: #e5e7eb;
}

body:not(.light-mode) .modal-body .form-input {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

body:not(.light-mode) .modal-body .form-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

body:not(.light-mode) .modal-footer .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

body:not(.light-mode) .modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

/* Modal responsive design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Usage status badges */
.usage-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  margin-top: 0.5rem;
}

.usage-status.available {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
}

.usage-status.limit-reached {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.usage-status.premium {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  font-weight: 600;
}

.usage-status.unlimited {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
  font-weight: 600;
}

.usage-status.advance-features {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Chatbot description */
.chatbot-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0.5rem 0 0 0;
  line-height: 1.4;
}

/* Dark mode for chatbot description */
body:not(.light-mode) .chatbot-desc {
  color: #9ca3af !important;
}

/* Light mode for chatbot description */
.light-mode .chatbot-desc {
  color: #6b7280 !important;
}

/* Tooltip icon styles */
.tooltip-icon {
  color: #6b7280;
  cursor: pointer;
  margin-left: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.tooltip-icon:hover {
  color: #3b82f6;
}

/* Mobile tooltip styles */
@media (max-width: 768px) {
  .tooltip-icon {
    font-size: 1.1rem;
    padding: 0.25rem;
    margin-left: 0.25rem;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
  }
  
  .tooltip-icon:active {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(0.95);
  }
  
  /* Mobile tooltip popup */
  .mobile-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    max-width: 90vw;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
  }
  
  .mobile-tooltip.show {
    display: block;
  }
  
  .mobile-tooltip-content {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #374151;
    margin-bottom: 1rem;
  }
  
  .mobile-tooltip-close {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
  }
  
  .mobile-tooltip-close:active {
    background: #2563eb;
  }
  
  /* Dark mode mobile tooltip */
  body:not(.light-mode) .mobile-tooltip {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
  
  body:not(.light-mode) .mobile-tooltip-content {
    color: #f9fafb;
  }
}

/* Tooltip icons */
.tooltip-icon {
  margin-left: 0.5rem;
  color: #6b7280;
  cursor: help;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.tooltip-icon:hover {
  color: #3b82f6;
}

/* Dark mode tooltip icons */
body:not(.light-mode) .tooltip-icon {
  color: #9ca3af !important;
}

body:not(.light-mode) .tooltip-icon:hover {
  color: #60a5fa !important;
}

/* Light mode tooltip icons */
.light-mode .tooltip-icon {
  color: #6b7280 !important;
}

.light-mode .tooltip-icon:hover {
  color: #3b82f6 !important;
}

/* Clickable tooltips for all screen sizes */
.clickable-tooltip {
  position: fixed;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  max-width: 320px;
  padding: 0;
  z-index: 10001;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.2s ease;
}

.clickable-tooltip.show {
  opacity: 1;
  transform: scale(1);
}

.clickable-tooltip-content {
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  cursor: pointer;
}

/* Dark mode clickable tooltips */
body:not(.light-mode) .clickable-tooltip {
  background: #374151 !important;
  border-color: #4b5563 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

body:not(.light-mode) .clickable-tooltip-content {
  color: #f3f4f6 !important;
}

/* Mobile responsive tooltip */
@media (max-width: 768px) {
  .clickable-tooltip {
    max-width: 90%;
    margin: 20px;
  }
  
  .clickable-tooltip-content {
    padding: 20px;
    font-size: 16px;
  }
}

/* Toggle Instructions Styles */
.section-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-btn {
    background: none;
    border: none;
    color: #4299e1;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.toggle-btn:hover {
    color: #3182ce;
    transform: scale(1.1);
}

.instructions-content {
    transition: all 0.3s ease;
}


.wallet-container {
            max-width: 100%;
            margin: 0 auto;
            padding: 20px;
        }
        
        .wallet-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
            color: white;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .wallet-balance {
            font-size: 3rem;
            font-weight: 700;
            margin: 10px 0;
        }
        
        .wallet-label {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 10px;
        }
        
        .balance-updated {
            font-size: 0.9rem;
            opacity: 0.8;
        }
        
        .transaction-section {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: #333;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .transaction-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .transaction-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            border-left: 4px solid transparent;
            transition: all 0.3s ease;
        }
        
        .transaction-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .transaction-item.credit {
            border-left-color: #28a745;
            background: linear-gradient(90deg, rgba(40,167,69,0.1) 0%, rgba(248,249,250,1) 100%);
        }
        
        .transaction-item.debit {
            border-left-color: #dc3545;
            background: linear-gradient(90deg, rgba(220,53,69,0.1) 0%, rgba(248,249,250,1) 100%);
        }
        
        .transaction-info {
            flex: 1;
        }
        
        .transaction-description {
            font-weight: 500;
            color: #333;
            margin-bottom: 5px;
        }
        
        .transaction-meta {
            font-size: 0.85rem;
            color: #666;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .transaction-amount {
            font-size: 1.2rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .transaction-amount.credit {
            color: #28a745;
        }
        
        .transaction-amount.debit {
            color: #dc3545;
        }
        
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: #666;
        }
        
        .empty-state i {
            font-size: 3rem;
            margin-bottom: 15px;
            opacity: 0.5;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            border-top: 3px solid #667eea;
        }
        
        .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: #333;
            margin: 10px 0 5px 0;
        }
        
        .stat-label {
            color: #666;
            font-size: 0.9rem;
        }
        
        @media (max-width: 100%) {
            .wallet-container {
                padding: 15px;
            }
            
            .wallet-header {
                padding: 20px;
            }
            
            .wallet-balance {
                font-size: 2.5rem;
            }
            
            .transaction-section {
                padding: 20px;
            }
            
            .transaction-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .transaction-amount {
                align-self: flex-end;
            }
            
            .transaction-meta {
                gap: 10px;
            }
        }
        
        .wallet-icon {
            color: #28a745;
            margin-right: 5px;
        }
        
        .wallet-amount {
            color: #28a745;
            font-weight: 600;
        }
        
        .stat-icon {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }
        
        .stat-icon.credit {
            color: #28a745;
        }
        
        .stat-icon.debit {
            color: #dc3545;
        }
        
        .stat-icon.transaction {
            color: #667eea;
        }

        /* Dark mode support */
        body:not(.light-mode) .transaction-section,
        body:not(.light-mode) .stat-card {
            background: var(--card-bg, #2d3748);
            color: var(--text-color, #e2e8f0);
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        }
        
        body:not(.light-mode) .section-title {
            color: var(--text-color, #e2e8f0);
        }
        
        body:not(.light-mode) .transaction-item {
            background: var(--card-bg, #374151);
            color: var(--text-color, #e2e8f0);
        }
        
        body:not(.light-mode) .transaction-item.credit {
            background: linear-gradient(90deg, rgba(40,167,69,0.2) 0%, var(--card-bg, #374151) 100%);
        }
        
        body:not(.light-mode) .transaction-item.debit {
            background: linear-gradient(90deg, rgba(220,53,69,0.2) 0%, var(--card-bg, #374151) 100%);
        }
        
        body:not(.light-mode) .transaction-item:hover {
            box-shadow: 0 5px 15px rgba(0,0,0,0.4);
        }
        
        body:not(.light-mode) .transaction-description {
            color: var(--text-color, #e2e8f0);
        }
        
        body:not(.light-mode) .transaction-meta {
            color: var(--text-color-muted, #9ca3af);
        }
        
        body:not(.light-mode) .stat-value {
            color: var(--text-color, #e2e8f0);
        }
        
        body:not(.light-mode) .stat-label {
            color: var(--text-color-muted, #9ca3af);
        }
        
        body:not(.light-mode) .empty-state {
            color: var(--text-color-muted, #9ca3af);
        }
        
        body:not(.light-mode) .wallet-icon,
        body:not(.light-mode) .wallet-amount {
            color: #34d399;
        }
        
        body:not(.light-mode) .stat-icon.credit {
            color: #34d399;
        }
        
        body:not(.light-mode) .stat-icon.debit {
            color: #f87171;
        }
        
        body:not(.light-mode) .stat-icon.transaction {
            color: #818cf8;
        }
        
        body.dark-theme .transaction-item {
            background: #4a5568;
        }
        
        body.dark-theme .section-title {
            color: #e2e8f0;
        }
        
        body.dark-theme .transaction-description {
            color: #e2e8f0;
        }
        
        body.dark-theme .stat-value {
            color: #e2e8f0;
        }

        /* Add Funds Section */
        .add-funds-section {
            background: white;
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .cryptomus-form {
            margin-top: 1rem;
            padding: 1rem;
            background: #f8fafc;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }

        .cryptomus-payment-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 24px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            justify-content: center;
        }

        .cryptomus-payment-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .cryptomus-payment-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .tm-form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: white;
        }

        .tm-form-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .tm-form-help {
            font-size: 12px;
            color: #6b7280;
            margin-top: 4px;
        }

        /* Dark theme support for add funds */
        body.dark-theme .add-funds-section {
            background: #2d3748;
            color: #e2e8f0;
            border-color: #4a5568;
        }

        body.dark-theme .cryptomus-form {
            background: #4a5568;
            border-color: #718096;
        }

        body.dark-theme .tm-form-input {
            background: #4a5568;
            border-color: #718096;
            color: #e2e8f0;
        }

        body.dark-theme .tm-form-input:focus {
            border-color: #667eea;
            background: #4a5568;
        }

        body.dark-theme .tm-form-help {
            color: #a0aec0;
        }
