/* SMC Report Builder - React SPA Styles */

/* TailAdmin Pro Complete Styling */
:root {
  --color-primary: #3b82f6;
  --color-secondary: #64748b;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-stroke: #e2e8f0;
  --color-strokedark: #374151;
  --color-gray: #64748b;
  --color-graydark: #1e293b;
  --color-whiten: #f1f5f9;
  --color-whiter: #f8fafc;
  --color-black: #1c2434;
  --color-black-2: #010101;
  --color-body: #64748b;
  --color-bodydark: #aeb7c0;
  --color-bodydark1: #dee4ee;
  --color-bodydark2: #8a99af;
  --color-meta-1: #dc3545;
  --color-meta-2: #eff4fb;
  --color-meta-3: #10b981;
  --color-meta-4: #313d4a;
  --color-meta-5: #6b7280;
  --color-meta-6: #ffba00;
  --color-meta-7: #ff6766;
  --color-meta-8: #f0950c;
  --color-meta-9: #64748b;
  --shadow-default: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
  --shadow-card: 0px 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-card-2: 0px 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-switcher: 0px 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-chat: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Override modal and body backgrounds to white */
body, html {
  background: white !important;
  background-color: white !important;
  background-image: none !important;
}

/* Override SweetAlert and other modal backgrounds */
.swal2-container,
.swal2-popup,
.swal2-modal,
.modal-container,
.modal-backdrop,
.sweet-alert {
  background: white !important;
  background-color: white !important;
  background-image: none !important;
}

/* Remove any gradient backgrounds */
*[style*="gradient"] {
  background: white !important;
  background-image: none !important;
}

/* Force white background for SMC Report Builder plugin page */
#smc-report-builder-app,
.smc-report-builder-page,
.wrap,
.wp-admin {
  background: white !important;
  background-color: white !important;
  background-image: none !important;
}

/* Override WordPress admin and plugin backgrounds */
body.admin-color-blue,
body.admin-color-coffee,
body.admin-color-ectoplasm,
body.admin-color-midnight,
body.admin-color-ocean,
body.admin-color-sunrise {
  background: white !important;
  background-color: white !important;
  background-image: none !important;
}

/* Universal gradient removal */
* {
  background-image: none !important;
}
*[style*="linear-gradient"],
*[style*="radial-gradient"],
*[class*="gradient"],
*[class*="bg-gradient"] {
  /* background: white !important; */
  background-color: white !important;
  background-image: none !important;
}

/* TailAdmin Pro Typography */
.text-title-xxl { font-size: 44px; line-height: 55px; font-weight: 700; }
.text-title-xl { font-size: 36px; line-height: 45px; font-weight: 700; }
.text-title-lg { font-size: 28px; line-height: 35px; font-weight: 700; }
.text-title-md { font-size: 24px; line-height: 30px; font-weight: 700; }
.text-title-sm { font-size: 20px; line-height: 26px; font-weight: 700; }
.text-title-xs { font-size: 18px; line-height: 24px; font-weight: 700; }

/* TailAdmin Pro Colors */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-black { color: var(--color-black); }
.text-black-2 { color: var(--color-black-2); }
.text-body { color: var(--color-body); }
.text-bodydark { color: var(--color-bodydark); }
.text-bodydark1 { color: var(--color-bodydark1); }
.text-bodydark2 { color: var(--color-bodydark2); }
.text-meta-1 { color: var(--color-meta-1); }
.text-meta-2 { color: var(--color-meta-2); }
.text-meta-3 { color: var(--color-meta-3); }
.text-meta-4 { color: var(--color-meta-4); }
.text-meta-5 { color: var(--color-meta-5); }
.text-meta-6 { color: var(--color-meta-6); }
.text-meta-7 { color: var(--color-meta-7); }
.text-meta-8 { color: var(--color-meta-8); }
.text-meta-9 { color: var(--color-meta-9); }

/* TailAdmin Pro Backgrounds */
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-success { background-color: var(--color-success); }
.bg-warning { background-color: var(--color-warning); }
.bg-danger { background-color: var(--color-danger); }
.bg-black { background-color: var(--color-black); }
.bg-black-2 { background-color: var(--color-black-2); }
.bg-stroke { background-color: var(--color-stroke); }
.bg-gray { background-color: var(--color-gray); }
.bg-graydark { background-color: var(--color-graydark); }
.bg-whiten { background-color: var(--color-whiten); }
.bg-whiter { background-color: var(--color-whiter); }
.bg-meta-1 { background-color: var(--color-meta-1); }
.bg-meta-2 { background-color: var(--color-meta-2); }
.bg-meta-3 { background-color: var(--color-meta-3); }
.bg-meta-4 { background-color: var(--color-meta-4); }
.bg-meta-5 { background-color: var(--color-meta-5); }
.bg-meta-6 { background-color: var(--color-meta-6); }
.bg-meta-7 { background-color: var(--color-meta-7); }
.bg-meta-8 { background-color: var(--color-meta-8); }
.bg-meta-9 { background-color: var(--color-meta-9); }
.bg-boxdark { background-color: #24303f; }

/* TailAdmin Pro Borders */
.border-stroke { border-color: var(--color-stroke); }
.border-strokedark { border-color: var(--color-strokedark); }
.border-primary { border-color: var(--color-primary); }
.border-secondary { border-color: var(--color-secondary); }
.border-success { border-color: var(--color-success); }
.border-warning { border-color: var(--color-warning); }
.border-danger { border-color: var(--color-danger); }

/* TailAdmin Pro Shadows */
.shadow-default { box-shadow: var(--shadow-default); }
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-card-2 { box-shadow: var(--shadow-card-2); }
.shadow-switcher { box-shadow: var(--shadow-switcher); }
.shadow-chat { box-shadow: var(--shadow-chat); }

/* TailAdmin Pro Sizing */
.h-11\.5 { height: 2.875rem; }
.w-11\.5 { width: 2.875rem; }
.w-72\.5 { width: 18.125rem; }
.px-7\.5 { padding-left: 1.875rem; padding-right: 1.875rem; }
.py-7\.5 { padding-top: 1.875rem; padding-bottom: 1.875rem; }
.z-9999 { z-index: 9999; }

/* Light mode defaults (primary theme) */
.bg-light { background-color: #ffffff; }
.bg-light-gray { background-color: var(--color-whiten); }
.text-light { color: var(--color-black); }
.border-light { border-color: var(--color-stroke); }

/* Enhanced light mode styling */
body {
  background-color: var(--color-whiten);
  color: var(--color-black);
}

/* Sidebar light theme enhancement */
.sidebar-light {
  background-color: #ffffff;
  border-right: 1px solid var(--color-stroke);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

/* Cards light theme enhancement */
.card-light {
  background-color: #ffffff;
  border: 1px solid var(--color-stroke);
  box-shadow: var(--shadow-default);
  transition: all 0.3s ease;
}

.card-light:hover {
  box-shadow: 0px 12px 20px -5px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Dark mode overrides (secondary theme) */
.dark .bg-boxdark { background-color: #24303f; }
.dark .bg-black { background-color: var(--color-black); }
.dark .text-white { color: #ffffff; }
.dark .text-bodydark { color: var(--color-bodydark); }
.dark .border-strokedark { border-color: var(--color-strokedark); }

/* TailAdmin Base Styles - Inline to avoid 404 errors */

/* Tailwind CSS essentials */
.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }
.h-full { height: 100%; }
.w-full { width: 100%; }
.w-64 { width: 16rem; }
.w-72 { width: 18rem; }
.smc-modal-wide { max-width: 90rem; width: 95%; } /* Custom wider width for code modal */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-white { color: rgb(255 255 255); }
.text-gray-400 { color: rgb(156 163 175); }
.text-gray-500 { color: rgb(107 114 128); }
.text-gray-600 { color: rgb(75 85 99); }
.text-gray-700 { color: rgb(55 65 81); }
.text-gray-900 { color: rgb(17 24 39); }
.text-blue-600 { color: rgb(37 99 235); }
.text-red-600 { color: rgb(220 38 38); }
.text-green-600 { color: rgb(22 163 74); }
.bg-white { background-color: rgb(255 255 255); }
.bg-gray-50 { background-color: rgb(249 250 251); }
.bg-gray-100 { background-color: rgb(243 244 246); }
.bg-gray-200 { background-color: rgb(229 231 235); }
.bg-gray-800 { background-color: rgb(31 41 55); }
.bg-gray-900 { background-color: rgb(17 24 39); }
.bg-blue-50 { background-color: rgb(239 246 255); }
.bg-blue-100 { background-color: rgb(219 234 254); }
.bg-blue-500 { background-color: rgb(59 130 246); }
.bg-blue-600 { background-color: rgb(37 99 235); }
.bg-green-100 { background-color: rgb(220 252 231); }
.bg-green-600 { background-color: rgb(22 163 74); }
.bg-red-100 { background-color: rgb(254 226 226); }
.bg-red-500 { background-color: rgb(239 68 68); }
.bg-red-600 { background-color: rgb(220 38 38); }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-gray-200 { border-color: rgb(229 231 235); }
.border-gray-300 { border-color: rgb(209 213 219); }
.border-gray-700 { border-color: rgb(55 65 81); }
.border-gray-800 { border-color: rgb(31 41 55); }
.border-blue-500 { border-color: rgb(59 130 246); }
.border-r { border-right-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-dashed { border-style: dashed; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05); }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.hover\:bg-gray-50:hover { background-color: rgb(249 250 251); }
.hover\:bg-blue-700:hover { background-color: rgb(29 78 216); }
.hover\:text-gray-700:hover { color: rgb(55 65 81); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); }
.focus\:ring-blue-500:focus { --tw-ring-color: rgb(59 130 246); }
.focus\:ring-offset-2:focus { --tw-ring-offset-width: 2px; }

/* Dark mode */
.dark .dark\:bg-gray-900 { background-color: rgb(17 24 39); }
.dark .dark\:bg-gray-800 { background-color: rgb(31 41 55); }
.dark .dark\:bg-gray-700 { background-color: rgb(55 65 81); }
.dark .dark\:text-white { color: rgb(255 255 255); }
.dark .dark\:text-gray-400 { color: rgb(156 163 175); }
.dark .dark\:text-gray-300 { color: rgb(209 213 219); }
.dark .dark\:text-red-400 { color: rgb(248 113 113); }
.dark .dark\:border-gray-800 { border-color: rgb(31 41 55); }
.dark .dark\:border-gray-700 { border-color: rgb(55 65 81); }
.dark .dark\:hover\:text-gray-300:hover { color: rgb(209 213 219); }
.dark .dark\:hover\:text-gray-200:hover { color: rgb(229 231 235); }
.dark .dark\:hover\:bg-gray-700:hover { background-color: rgb(55 65 81); }

/* Enhanced Mobile-First Responsive Breakpoints */

/* Mobile First - Base styles for mobile */
.container { 
    padding-left: 1rem; 
    padding-right: 1rem; 
}

/* Mobile specific utilities */
.mobile-only { display: block; }
.mobile-hidden { display: none; }

/* Small mobile (320px+) */
@media (min-width: 320px) {
    .sm\:text-sm { font-size: 0.875rem; }
    .sm\:p-2 { padding: 0.5rem; }
    .sm\:gap-2 { gap: 0.5rem; }
}

/* Large mobile/Small tablet (480px+) */
@media (min-width: 480px) {
    .xs\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xs\:p-4 { padding: 1rem; }
    .xs\:gap-4 { gap: 1rem; }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .mobile-only { display: none; }
    .mobile-hidden { display: block; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:p-6 { padding: 1.5rem; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:text-base { font-size: 1rem; }
    .md\:gap-6 { gap: 1.5rem; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
    .lg\:flex { display: flex; }
    .lg\:p-8 { padding: 2rem; }
    .lg\:gap-8 { gap: 2rem; }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .xl\:hidden { display: none; }
    .xl\:block { display: block; }
    .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

#smc-report-builder-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: #374151;
}

/* Mobile-First Sidebar Styles */
.sidebar-mobile {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 280px;
  height: 100vh;
  background: white;
  border-right: 1px solid #e2e8f0;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sidebar-mobile.open {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Header with Hamburger */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 30;
}

.hamburger-menu {
  display: flex;
  flex-direction: column;
  width: 24px;
  height: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: #374151;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-line:nth-child(2) {
  margin: 4px 0;
}

.hamburger-menu.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Styles */
.nav-mobile {
  padding: 1rem 0;
}

.nav-mobile .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-mobile .nav-link:hover {
  background: #f8fafc;
  color: #3b82f6;
  border-left-color: #3b82f6;
}

.nav-mobile .nav-link.active {
  background: #eff6ff;
  color: #3b82f6;
  border-left-color: #3b82f6;
  font-weight: 500;
}

.nav-mobile .nav-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Mobile-specific responsive utilities */
@media (max-width: 767px) {
  .desktop-sidebar {
    display: none !important;
  }
  
  .mobile-header {
    display: flex !important;
  }
  
  .main-content {
    padding-top: 0 !important;
  }
  
  /* Mobile card adjustments */
  .card {
    margin: 0.5rem;
    padding: 1rem !important;
  }
  
  /* Mobile grid adjustments */
  .grid {
    gap: 0.75rem !important;
  }
  
  .grid-cols-1 {
    grid-template-columns: 1fr !important;
  }
  
  /* Mobile text adjustments */
  .text-3xl {
    font-size: 1.5rem !important;
  }
  
  .text-2xl {
    font-size: 1.25rem !important;
  }
  
  .text-xl {
    font-size: 1.125rem !important;
  }
}

@media (min-width: 768px) {
  .sidebar-mobile,
  .sidebar-overlay,
  .mobile-header {
    display: none !important;
  }
  
  .desktop-sidebar {
    display: flex !important;
  }
}

/* Fix sidebar layout conflicts */
@media (min-width: 1024px) {
  /* Ensure sidebar doesn't overlap on desktop */
  .desktop-sidebar {
    position: static !important;
    transform: none !important;
    z-index: auto !important;
  }
  
  /* Ensure main content has proper spacing */
  .main-content-with-sidebar {
    margin-left: 0 !important;
  }
}

/* Mobile sidebar positioning */
@media (max-width: 1023px) {
  .desktop-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 50 !important;
    transform: translateX(-100%) !important;
  }
  
  .desktop-sidebar.sidebar-open {
    transform: translateX(0) !important;
  }
}

/* Z-index hierarchy fix */
.sidebar-overlay {
  z-index: 40 !important;
}

.desktop-sidebar {
  z-index: 50 !important;
}

@media (min-width: 1024px) {
  .desktop-sidebar {
    z-index: auto !important;
  }
}

/* Header z-index adjustments */
header {
  z-index: 30 !important;
}

@media (min-width: 1024px) {
  header {
    z-index: 10 !important;
  }
}

/* Main content layout fix */
.main-content {
  position: relative;
  z-index: 1;
}

/* Ensure proper flex layout */
.flex.h-screen.overflow-hidden {
  position: relative;
}

/* Mobile header positioning */
.mobile-header {
  z-index: 30 !important;
}

/* Dark mode support */
.dark #smc-report-builder-app {
  color: #f9fafb;
}

/* Loading spinner */
.smc-rb-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f9fafb;
}

/* Card styles */
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .card {
  background: #1f2937;
  border-color: #374151;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

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

.dark .form-input {
  background: #374151;
  border-color: #4b5563;
  color: white;
}

/* Tab styles */
.tab-nav {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
}

.tab-button {
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-button.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.tab-button:hover {
  color: #374151;
}

.dark .tab-button {
  color: #9ca3af;
}

.dark .tab-button.active {
  color: #60a5fa;
}

/* Code editor styles */
.code-editor {
  font-family: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  border: none;
  outline: none;
  resize: vertical;
  background: #f8fafc;
  padding: 1rem;
  min-height: 600px;
  max-height: 80vh;
}

.dark .code-editor {
  background: #1e293b;
  color: #e2e8f0;
}

/* Preview iframe */
.preview-iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  max-height: 80vh;
  border: none;
  background: white;
}

/* Alert styles */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert-warning {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #d97706;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-public {
  background: #dbeafe;
  color: #1e40af;
}

.status-password {
  background: #fef3c7;
  color: #d97706;
}

.status-private {
  background: #fde2e8;
  color: #be185d;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
  }
  
  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

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

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.dark .modal-content {
  background: #1f2937;
}

/* Copy button animation */
.copy-success {
  animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* SVG and Icon styles */
svg {
  display: inline-block;
  vertical-align: middle;
}

.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-80 { height: 20rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.w-80 { width: 20rem; }

.h-8 { height: 2rem; }
.h-3 { height: 0.75rem; }
.w-3 { width: 0.75rem; }
.-top-1 { top: -0.25rem; }
.-right-1 { right: -0.25rem; }
.rounded-full { border-radius: 9999px; }

/* Additional utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-none { max-width: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.right-0 { right: 0px; }
.mt-2 { margin-top: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.z-50 { z-index: 50; }

/* Focus states */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-blue-500:focus { --tw-ring-opacity: 1; --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity)); }
.focus\:border-blue-500:focus { --tw-border-opacity: 1; border-color: rgb(59 130 246 / var(--tw-border-opacity)); }

/* Input styles */
.inset-y-0 { top: 0px; bottom: 0px; }
.left-0 { left: 0px; }
.right-0 { right: 0px; }
.pl-3 { padding-left: 0.75rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-16 { padding-right: 4rem; }
.pointer-events-none { pointer-events: none; }

/* Placeholder styles */
.placeholder-gray-500::placeholder { color: rgb(107 114 128); }
.dark .dark\:placeholder-gray-400::placeholder { color: rgb(156 163 175); }

/* Max width */
.max-w-md { max-width: 28rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }

/* Fix for missing classes in vanilla JS fallback */
.nav-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Remove any default margins on headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

/* Button consistency */
button {
  border: none;
  background: none;
  cursor: pointer;
}

/* Input focus ring variables */
:root {
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
}

/* Full width layout fixes */
#smc-report-builder-app {
  width: 100% !important;
  max-width: none !important;
}

#smc-report-builder-app main {
  width: 100% !important;
  max-width: none !important;
}

#smc-report-builder-app #content-area {
  width: 100% !important;
  max-width: none !important;
}

/* Ensure grid takes full width */
.grid {
  width: 100%;
}

/* Override any container restrictions */
.fade-in {
  width: 100% !important;
  max-width: none !important;
}

/* Form controls */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.875rem;
    transition: all 0.2s;
}

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

.dark .form-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark .form-input:focus {
    border-color: #60a5fa;
}

/* Button sizes */
.btn-sm { 
    padding: 0.25rem 0.75rem; 
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Tab styles */
.tab-nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.25rem;
}

.tab-button {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 0.25rem;
}

.tab-button:hover {
    color: #374151;
    background-color: #e5e7eb;
}

.tab-button.active {
    color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .tab-nav {
    background-color: #374151;
    border-color: #4b5563;
}

.dark .tab-button {
    color: #9ca3af;
}

.dark .tab-button:hover {
    color: #f3f4f6;
    background-color: #4b5563;
}

.dark .tab-button.active {
    color: #60a5fa;
    background-color: #1f2937;
}

/* Code editor */
.code-editor {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    resize: vertical;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 1rem;
    line-height: 1.6;
    font-size: 0.875rem;
    transition: all 0.2s;
    min-height: 600px;
    max-height: 80vh;
}

/* Override h-96 class for code editor */
#html-editor {
    height: 600px !important;
    max-height: 80vh !important;
}

/* Tab content container */
.tab-content {
    min-height: 650px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Code editor footer styling */
.tab-content .mt-2 {
    margin-top: 0.5rem !important;
    padding: 0.5rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    position: relative;
    z-index: 10;
}

.dark .tab-content .mt-2 {
    background-color: #1f2937;
    border-color: #374151;
}

/* Ensure footer text is visible */
.tab-content .mt-2 span {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    font-weight: 500;
}

.dark .tab-content .mt-2 span {
    color: #9ca3af !important;
}

/* Character counter in footer styling */
#char-count {
    font-weight: 600;
    color: #374151 !important;
}

.dark #char-count {
    color: #e5e7eb !important;
}

/* Footer separators styling */
.tab-content .mt-2 .text-gray-400 {
    color: #d1d5db !important;
    font-weight: 300;
    user-select: none;
}

.dark .tab-content .mt-2 .text-gray-400 {
    color: #6b7280 !important;
}

/* Footer monospace text styling */
.tab-content .mt-2 .font-mono {
    font-family: 'Courier New', Consolas, Monaco, monospace !important;
    font-size: 0.8rem;
    letter-spacing: 0.025em;
}

/* Validate button styling */
.tab-content button#validate-btn {
    color: #3b82f6 !important;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.tab-content button#validate-btn:hover {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
}

.dark .tab-content button#validate-btn:hover {
    background-color: #1e3a8a !important;
    color: #60a5fa !important;
}

/* Preview iframe specific sizing */
#preview-frame {
    height: 600px !important;
    max-height: 80vh !important;
    min-height: 600px !important;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
}

/* Save & Share Modal - TailAdmin Pro Style */
#save-share-modal {
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

#save-share-modal > div > div {
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px !important;
}

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

@keyframes modalSlideUp {
    from { 
        opacity: 0;
        transform: translateY(32px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* TailAdmin Pro Modal Styling */
#save-share-modal .bg-white {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Ensure modal is centered and not full screen */
#save-share-modal > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 1rem !important;
}

#save-share-modal > div > div {
    max-width: 584px !important;
    width: 100% !important;
    margin: 0 auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

/* Modal content spacing adjustments */
#save-share-modal .space-y-5 > * + * {
    margin-top: 1.25rem !important;
}

#save-share-modal .mb-5 {
    margin-bottom: 1.25rem !important;
}

/* Footer spacing */
#save-share-modal .pt-5 {
    padding-top: 1.25rem !important;
    border-top: 1px solid #f1f5f9;
    margin-top: 1rem !important;
}

#save-share-modal input,
#save-share-modal textarea,
#save-share-modal select {
    border: 1.5px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
}

#save-share-modal input:focus,
#save-share-modal textarea:focus,
#save-share-modal select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

#save-share-modal input:hover,
#save-share-modal textarea:hover,
#save-share-modal select:hover {
    border-color: #9ca3af;
}

/* Modal Button Styling - TailAdmin Pro */
#save-share-modal button {
    border-radius: 12px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
    transition: all 0.2s ease-in-out !important;
    border: none !important;
    cursor: pointer !important;
}

/* Close Button Styling */
.modal-close-btn {
    background-color: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

.modal-close-btn:hover {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

/* Primary Save Button Styling */
.modal-save-btn,
#modal-save-btn {
    background-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.modal-save-btn:hover,
#modal-save-btn:hover {
    background-color: #2563eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.modal-save-btn:active,
#modal-save-btn:active {
    background-color: #1d4ed8 !important;
    transform: translateY(1px) !important;
}

/* Close X Button in Header */
#save-share-modal button.w-8.h-8 {
    background-color: #f1f5f9 !important;
    border-radius: 50% !important;
    transition: all 0.2s ease-in-out !important;
}

#save-share-modal button.w-8.h-8:hover {
    background-color: #e2e8f0 !important;
    transform: scale(1.05) !important;
}

/* Label Styling */
#save-share-modal label {
    font-weight: 500;
    letter-spacing: -0.025em;
}

/* Placeholder Styling */
#save-share-modal input::placeholder,
#save-share-modal textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Select Arrow Custom */
#save-share-modal select {
    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='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Dark mode improvements */
.dark #save-share-modal input,
.dark #save-share-modal textarea,
.dark #save-share-modal select {
    border-color: #374151;
    background-color: #1f2937;
}

.dark #save-share-modal input:focus,
.dark #save-share-modal textarea:focus,
.dark #save-share-modal select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Animation for password field */
#modal-password-field {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#modal-password-field.show {
    max-height: 80px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #save-share-modal > div {
        padding: 0.75rem !important;
    }
    
    #save-share-modal > div > div {
        margin: 0 !important;
        max-width: calc(100vw - 1.5rem) !important;
        width: calc(100vw - 1.5rem) !important;
        max-height: 95vh !important;
    }
}

@media (min-width: 641px) {
    #save-share-modal > div > div {
        max-width: 584px !important;
        width: 584px !important;
        max-height: 90vh !important;
    }
}

/* Flatpickr TailAdmin Pro Styling */
.flatpickr-calendar.flatpickr-tailadmin {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

.flatpickr-calendar.flatpickr-tailadmin .flatpickr-months {
    border-radius: 12px 12px 0 0 !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.flatpickr-calendar.flatpickr-tailadmin .flatpickr-current-month {
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.flatpickr-calendar.flatpickr-tailadmin .flatpickr-weekdays {
    background: #f8fafc !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.flatpickr-calendar.flatpickr-tailadmin .flatpickr-day {
    border-radius: 6px !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

.flatpickr-calendar.flatpickr-tailadmin .flatpickr-day:hover {
    background: #e0f2fe !important;
    color: #0f172a !important;
}

.flatpickr-calendar.flatpickr-tailadmin .flatpickr-day.selected {
    background: #3b82f6 !important;
    color: white !important;
    font-weight: 600 !important;
}

.flatpickr-calendar.flatpickr-tailadmin .flatpickr-day.today {
    background: #fef3c7 !important;
    color: #92400e !important;
    font-weight: 600 !important;
}

.flatpickr-calendar.flatpickr-tailadmin .flatpickr-day.today.selected {
    background: #3b82f6 !important;
    color: white !important;
}

.flatpickr-calendar.flatpickr-tailadmin .flatpickr-day.disabled {
    color: #d1d5db !important;
}

/* Flatpickr arrow styling */
.flatpickr-calendar.flatpickr-tailadmin .flatpickr-prev-month,
.flatpickr-calendar.flatpickr-tailadmin .flatpickr-next-month {
    color: #6b7280 !important;
    padding: 4px !important;
    border-radius: 6px !important;
}

.flatpickr-calendar.flatpickr-tailadmin .flatpickr-prev-month:hover,
.flatpickr-calendar.flatpickr-tailadmin .flatpickr-next-month:hover {
    background: #e5e7eb !important;
    color: #374151 !important;
}

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

.dark .code-editor {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark .code-editor:focus {
    border-color: #60a5fa;
    background-color: #111827;
}

/* Modal and overlay styles */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bg-opacity-50 { --tw-bg-opacity: 0.5; }

/* Additional color utilities */
.text-yellow-500 { color: rgb(234 179 8); }
.text-green-500 { color: rgb(34 197 94); }
.text-green-600 { color: rgb(22 163 74); }
.bg-green-100 { background-color: rgb(220 252 231); }

/* Spacing utilities */
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }

/* Utilities */
.font-mono { font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; }
.flex-1 { flex: 1 1 0%; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Table styles */
.table-auto { table-layout: auto; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.divide-gray-200 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(229 231 235); }
.dark .divide-gray-700 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(55 65 81); }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }

/* Badge styles */
.bg-yellow-100 { background-color: rgb(254 249 195); }
.text-yellow-800 { color: rgb(146 64 14); }
.rounded-full { border-radius: 9999px; }

/* Hover effects */
.hover\:bg-gray-50:hover { background-color: rgb(249 250 251); }
.dark .dark\:hover\:bg-gray-700:hover { background-color: rgb(55 65 81); }

/* Additional spacing */
.flex-col { flex-direction: column; }
.overflow-x-auto { overflow-x: auto; }

/* Filter Section - 4 Column Layout Enhancement */
.filter-grid-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    align-items: end !important;
}

@media (min-width: 1024px) {
    .filter-grid-container {
        grid-template-columns: 2fr 1.5fr 1.5fr 1fr !important;
    }
}

/* Equal height for filter elements */
.filter-grid-container > div {
    display: flex !important;
    flex-direction: column !important;
}

.filter-grid-container .form-input,
.filter-grid-container .btn {
    height: 44px !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    border: 1px solid #d1d5db !important;
    transition: all 0.2s ease !important;
}

.filter-grid-container .form-input {
    background-color: #ffffff !important;
}

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

.filter-grid-container .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500 !important;
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}

.filter-grid-container .btn:hover {
    background-color: #e5e7eb !important;
}

/* Dark mode support */
.dark .filter-grid-container .form-input {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #ffffff !important;
}

.dark .filter-grid-container .form-input:focus {
    background-color: #4b5563 !important;
    border-color: #3b82f6 !important;
}

.dark .filter-grid-container .btn {
    background-color: #4b5563 !important;
    color: #ffffff !important;
}

.dark .filter-grid-container .btn:hover {
    background-color: #6b7280 !important;
}

/* Edit Info Modal Styles - Imported from modal-styles.css */
#edit-info-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 50 !important;
    overflow-y: auto !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 1rem !important;
    animation: modalFadeIn 0.3s ease-out !important;
}

#edit-info-modal .bg-white {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

#edit-info-modal > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 1rem !important;
}

#edit-info-modal > div > div {
    max-width: 584px !important;
    width: 100% !important;
    margin: 0 auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    background: white !important;
    border-radius: 24px !important;
    position: relative !important;
    animation: modalSlideUp 0.3s ease-out !important;
}

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

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Edit Modal Button Styling */
#edit-info-modal button {
    border-radius: 12px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
    transition: all 0.2s ease-in-out !important;
    border: none !important;
    cursor: pointer !important;
}

#edit-info-modal .modal-close-btn {
    background-color: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

#edit-info-modal .modal-close-btn:hover {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

#edit-info-modal .modal-save-btn {
    background-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

#edit-info-modal .modal-save-btn:hover {
    background-color: #2563eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

#edit-info-modal .modal-save-btn:active {
    background-color: #1d4ed8 !important;
    transform: translateY(1px) !important;
}

/* Edit Code Modal Styles - Large modal with tabs */
#edit-code-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 50 !important;
    overflow-y: auto !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 1rem !important;
    animation: modalFadeIn 0.3s ease-out !important;
}

#edit-code-modal .bg-white {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

#edit-code-modal > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 1rem !important;
}

#edit-code-modal > div > div {
    max-width: 90rem !important; /* 1440px = 90rem, extra wide for code editing */
    width: 95% !important; /* Use more of screen width */
    margin: 0 auto !important;
    max-height: 90vh !important;
    background: white !important;
    border-radius: 24px !important;
    position: relative !important;
    overflow: hidden !important;
    animation: modalSlideUp 0.3s ease-out !important;
}

/* Edit Code Modal Button Styling */
#edit-code-modal button {
    border-radius: 12px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
    transition: all 0.2s ease-in-out !important;
    border: none !important;
    cursor: pointer !important;
}

#edit-code-modal .modal-close-btn {
    background-color: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

#edit-code-modal .modal-close-btn:hover {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

#edit-code-modal .modal-save-btn {
    background-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

#edit-code-modal .modal-save-btn:hover {
    background-color: #2563eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

#edit-code-modal .modal-save-btn:active {
    background-color: #1d4ed8 !important;
    transform: translateY(1px) !important;
}

/* Edit Code Modal - Tab styling */
#edit-code-modal .border-b-2 {
    border-bottom-width: 2px !important;
}

#edit-code-modal .border-blue-600 {
    border-color: rgb(37, 99, 235) !important;
}

#edit-code-modal .text-blue-600 {
    color: rgb(37, 99, 235) !important;
}

/* Edit Code Modal - Layout fixes */
#edit-code-modal .smc-modal-wide {
    max-width: 90rem !important; /* 1440px = 90rem, extra wide for code editing */
    width: 95% !important;
}

#edit-code-modal .max-h-\[90vh\] {
    max-height: 90vh !important;
}

#edit-code-modal .h-\[calc\(90vh-140px\)\] {
    height: calc(90vh - 140px) !important;
}

/* Responsive for edit code modal */
@media (max-width: 1600px) {
    #edit-code-modal > div > div {
        max-width: calc(100vw - 4rem) !important;
        width: calc(100vw - 4rem) !important;
        max-height: 90vh !important;
    }
}

@media (max-width: 1024px) {
    #edit-code-modal > div > div {
        max-width: calc(100vw - 2rem) !important;
        width: calc(100vw - 2rem) !important;
        max-height: 95vh !important;
    }
    
    #edit-code-modal .h-\[calc\(90vh-140px\)\] {
        height: calc(95vh - 140px) !important;
    }
}

@media (max-width: 768px) {
    #edit-code-modal > div {
        padding: 0.5rem !important;
    }
    
    #edit-code-modal > div > div {
        max-width: calc(100vw - 1rem) !important;
        width: calc(100vw - 1rem) !important;
        max-height: 98vh !important;
    }
    
    #edit-code-modal .h-\[calc\(90vh-140px\)\] {
        height: calc(98vh - 120px) !important;
    }
}

/* Simple Code Editor - Clean and Minimal with Expanded Height */
.simple-code-editor {
  font-family: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 2px solid #d1d5db !important;
  border-radius: 8px;
  resize: none;
  outline: none;
  transition: all 0.2s ease;
  font-size: 14px;
  line-height: 1.6;
  padding: 16px;
  min-height: 500px !important;
}

.simple-code-editor:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
  outline: none !important;
}

.simple-code-editor::placeholder {
  color: #9ca3af !important;
  font-style: italic;
  line-height: 1.6;
}

/* Responsive design for simple editor */
@media (max-width: 768px) {
  .simple-code-editor {
    font-size: 13px;
    padding: 12px;
    min-height: 400px !important;
  }
}

@media (max-width: 640px) {
  .simple-code-editor {
    font-size: 12px;
    padding: 10px;
    min-height: 350px !important;
  }
}

/* TailAdmin Pro ShareLinks Components */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.group:hover .group-hover\:text-blue-600 {
  color: #2563eb;
}

/* Card hover animations */
.card-hover {
  transition: all 0.2s ease-in-out;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Status badges */
.status-badge {
  transition: all 0.15s ease-in-out;
}

.status-badge:hover {
  transform: scale(1.05);
}

/* List Layout Enhancements */
.report-list-item {
  transition: all 0.2s ease-in-out;
}

.report-list-item:hover {
  background-color: #f9fafb;
  transform: translateX(2px);
}

.report-index-badge {
  transition: all 0.2s ease-in-out;
}

.report-list-item:hover .report-index-badge {
  background-color: #3b82f6;
  color: white;
  transform: scale(1.1);
}

/* Action buttons for list */
.list-action-btn {
  transition: all 0.15s ease-in-out;
}

.list-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Toggle Switch Enhancements */
.toggle-switch {
  transition: all 0.2s ease-in-out;
}

.toggle-switch:hover {
  transform: scale(1.05);
}

.toggle-switch-thumb {
  transition: all 0.2s ease-in-out;
}

.toggle-switch:focus-within .toggle-switch-thumb {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* ShareLinks Table Layout Fix */
.sharelinks-table-header {
  background-color: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 1rem 1.5rem !important;
}

.sharelinks-table-row {
  padding: 1rem 1.5rem !important;
  border-bottom: 1px solid #e5e7eb !important;
  transition: background-color 0.2s ease !important;
}

.sharelinks-table-row:hover {
  background-color: #f9fafb !important;
}

/* Grid System for ShareLinks */
.sharelinks-grid {
  display: grid !important;
  grid-template-columns: 
    minmax(50px, 1fr)    /* # */
    minmax(200px, 3fr)   /* Báo Cáo */
    minmax(120px, 2fr)   /* Status */
    minmax(180px, 2fr)   /* Share URL */
    minmax(100px, 1fr)   /* Ngày Tạo */
    minmax(80px, 1fr)    /* Stats */
    minmax(80px, 1fr)    /* Enable */
    minmax(120px, 1fr);  /* Actions */
  gap: 1rem !important;
  align-items: center !important;
}

/* Enhanced Mobile-Responsive Grid */
@media (max-width: 1024px) {
  .sharelinks-grid {
    grid-template-columns: 
      minmax(40px, 1fr)    /* # */
      minmax(180px, 3fr)   /* Báo Cáo */
      minmax(100px, 2fr)   /* Status */
      minmax(70px, 1fr)    /* Stats */
      minmax(70px, 1fr)    /* Enable */
      minmax(100px, 1fr);  /* Actions */
    gap: 0.75rem !important;
  }
}

@media (max-width: 768px) {
  .sharelinks-grid {
    grid-template-columns: 
      minmax(30px, 0.5fr)  /* # */
      minmax(150px, 4fr)   /* Báo Cáo */
      minmax(80px, 1.5fr)  /* Status */
      minmax(60px, 1fr)    /* Enable */
      minmax(80px, 1fr);   /* Actions */
    gap: 0.5rem !important;
    font-size: 0.875rem;
  }
  
  /* Hide less important columns on mobile */
  .sharelinks-grid .sharelinks-col-stats {
    display: none !important;
  }
  
  .sharelinks-grid .sharelinks-col-url {
    display: none !important;
  }
  
  .sharelinks-grid .sharelinks-col-date {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .sharelinks-grid {
    grid-template-columns: 
      minmax(25px, 0.3fr)  /* # */
      minmax(120px, 5fr)   /* Báo Cáo */
      minmax(60px, 1fr)    /* Enable */
      minmax(70px, 1fr);   /* Actions */
    gap: 0.25rem !important;
    font-size: 0.8rem;
  }
  
  /* Hide status column on very small screens */
  .sharelinks-grid .sharelinks-col-status {
    display: none !important;
  }
}

/* Table column alignment */
.table-cell-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ShareLinks specific column alignments */
.sharelinks-col-status {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sharelinks-col-enable {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sharelinks-col-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sharelinks-col-stats {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.table-cell-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.table-cell-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Mobile-Friendly Modal Styles */
@media (max-width: 768px) {
  /* Modal container adjustments */
  .fixed.inset-0.z-50 {
    padding: 1rem !important;
  }
  
  /* Modal content responsive sizing */
  .relative.w-full.max-w-\[584px\] {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 1rem !important;
  }
  
  /* Modal padding adjustments */
  .lg\:p-10 {
    padding: 1.5rem !important;
  }
  
  /* Form elements mobile optimization */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important; /* Prevent zoom on iOS */
    padding: 0.75rem !important;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
  }
  
  /* Grid adjustments in modals */
  .grid.grid-cols-1.md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .grid.grid-cols-1.md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  /* Very small screen modal adjustments */
  .fixed.inset-0.z-50 {
    padding: 0.5rem !important;
  }
  
  .relative.w-full.max-w-\[584px\] {
    border-radius: 0.5rem !important;
  }
  
  .lg\:p-10 {
    padding: 1rem !important;
  }
  
  /* Smaller text for very small screens */
  .text-xl {
    font-size: 1.125rem !important;
  }
  
  .text-lg {
    font-size: 1rem !important;
  }
}

/* Mobile-Optimized Dashboard Cards */
@media (max-width: 768px) {
  .card {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .card .text-3xl {
    font-size: 1.5rem !important;
  }
  
  .card .text-2xl {
    font-size: 1.25rem !important;
  }
  
  /* Statistics cards mobile layout */
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  /* Single column layout for very small screens */
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4,
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3,
  .grid.grid-cols-1.md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
}

/* Mobile Code Editor Optimization */
@media (max-width: 768px) {
  .code-editor-container {
    height: 300px !important; /* Shorter on mobile */
  }
  
  .preview-container {
    height: 300px !important;
  }
  
  /* Tab buttons mobile friendly */
  .tab-button {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
  }
  
  /* Device preview buttons */
  .device-preview-buttons {
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
  }
  
  .device-preview-buttons button {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
  }
}

/* ShareLinks specific styling */
.sharelinks-index-badge {
  width: 32px !important;
  height: 32px !important;
  background-color: #dbeafe !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #2563eb !important;
  transition: all 0.2s ease !important;
}

/* Edit Info Modal Styles */
.edit-info-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 50 !important;
  overflow-y: auto !important;
}

.edit-info-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background-color: rgba(17, 24, 39, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.edit-info-modal-container {
  display: flex !important;
  min-height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
}

.edit-info-modal-content {
  position: relative !important;
  transform: translateY(0) !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background-color: white !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  max-width: 28rem !important;
}

.edit-info-modal-header {
  background-color: white !important;
  padding: 1.5rem 1.5rem 1rem 1.5rem !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

.edit-info-modal-body {
  padding: 1.5rem !important;
  background-color: white !important;
}

.edit-info-modal-form-field {
  margin-bottom: 1rem !important;
}

.edit-info-modal-label {
  display: block !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #374151 !important;
  margin-bottom: 0.5rem !important;
}

.edit-info-modal-input {
  display: block !important;
  width: 100% !important;
  border-radius: 8px !important;
  border: 2px solid #d1d5db !important;
  padding: 0.75rem !important;
  font-size: 0.875rem !important;
  color: #111827 !important;
  background-color: white !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.edit-info-modal-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.edit-info-modal-textarea {
  display: block !important;
  width: 100% !important;
  border-radius: 8px !important;
  border: 2px solid #d1d5db !important;
  padding: 0.75rem !important;
  font-size: 0.875rem !important;
  color: #111827 !important;
  background-color: white !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  resize: none !important;
  min-height: 80px !important;
}

.edit-info-modal-textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.edit-info-modal-select {
  display: block !important;
  width: 100% !important;
  border-radius: 8px !important;
  border: 2px solid #d1d5db !important;
  padding: 0.75rem !important;
  font-size: 0.875rem !important;
  color: #111827 !important;
  background-color: white !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.edit-info-modal-select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.edit-info-modal-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
  margin-top: 1.5rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid #f3f4f6 !important;
}

.edit-info-modal-btn {
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  outline: none !important;
  border: 2px solid transparent !important;
}

.edit-info-modal-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.edit-info-modal-btn-secondary {
  color: #374151 !important;
  background-color: white !important;
  border-color: #d1d5db !important;
}

.edit-info-modal-btn-secondary:hover:not(:disabled) {
  background-color: #f9fafb !important;
  border-color: #9ca3af !important;
}

.edit-info-modal-btn-primary {
  color: white !important;
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

.edit-info-modal-btn-primary:hover:not(:disabled) {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.edit-info-modal-close-btn {
  border-radius: 6px !important;
  background-color: white !important;
  color: #9ca3af !important;
  padding: 0.5rem !important;
  transition: all 0.15s ease !important;
  outline: none !important;
  border: none !important;
  cursor: pointer !important;
}

.edit-info-modal-close-btn:hover {
  color: #6b7280 !important;
  background-color: #f9fafb !important;
}

.sharelinks-report-link {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.75rem !important;
  color: #2563eb !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  max-width: 100% !important;
}

.sharelinks-report-link:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

.sharelinks-report-link svg {
  flex-shrink: 0 !important;
  width: 12px !important;
  height: 12px !important;
  margin-right: 0.25rem !important;
}

.sharelinks-report-link span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sharelinks-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.375rem 0.75rem !important;
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
}

/* TailAdmin Pro Circular Toggle Button */
.sharelinks-toggle {
  padding: 4px !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 30px  !important;
  width: 30px !important;
  min-height: 30px !important;
  min-width: 30px !important;
  max-height: 30px !important;
  max-width: 30px !important;
  border-radius: 50% !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  border: 1px solid #d0d5dd !important;
  outline: none !important;
  background-color: #ffffff !important;
  /* box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important; */
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
}

.sharelinks-toggle:hover {
  border-color: #d1d5db !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-1px) !important;
}

.sharelinks-toggle:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
  outline: none !important;
}

.sharelinks-toggle.active {
  background-color: #465fff !important;
  border-color: #465fff !important;
  /* box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3), 0 2px 4px -1px rgba(16, 185, 129, 0.06) !important; */
}

.sharelinks-toggle.active:hover {
  background-color: #465fff !important;
  border-color: #465fff !important;
  /* box-shadow: 0 6px 8px -1px rgba(16, 61, 185, 0.4), 0 4px 6px -1px rgba(16, 185, 129, 0.1) !important; */
  transform: translateY(-1px) !important;
}

/* Check Icon */
.sharelinks-toggle-check {
  display: none !important;
  width: 30px !important;
  height: 30px !important;
  color: white !important;
  transition: all 0.2s ease !important;
}

.sharelinks-toggle.active .sharelinks-toggle-check {
  display: block !important;
}

/* Remove thumb for circular design */
.sharelinks-toggle-thumb {
  display: none !important;
}

/* Circular Toggle Animation States */
.sharelinks-toggle:active {
  transform: scale(0.95) !important;
}

.sharelinks-toggle.active:active {
  transform: scale(0.95) translateY(-1px) !important;
}

/* Disabled State */
.sharelinks-toggle:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background-color: #f3f4f6 !important;
  border-color: #e5e7eb !important;
}

.sharelinks-toggle:disabled .sharelinks-toggle-check {
  display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sharelinks-toggle {
    height: 28px !important;
    width: 28px !important;
    min-height: 28px !important;
    min-width: 28px !important;
    max-height: 28px !important;
    max-width: 28px !important;
  }
  
  .sharelinks-toggle-check {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
  }
}

.sharelinks-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.375rem !important;
  border-radius: 0.375rem !important;
  border: 1px solid !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  outline: none !important;
}

.sharelinks-action-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Delete button specific styling */
.sharelinks-action-btn.text-red-600 {
  color: #dc2626 !important;
  background-color: #fef2f2 !important;
  border-color: #fecaca !important;
}

.sharelinks-action-btn.text-red-600:hover {
  background-color: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2) !important;
}

/* ShareLinks Empty State Enhanced Styling */
.sharelinks-empty-state {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sharelinks-empty-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

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

.sharelinks-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.sharelinks-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.sharelinks-empty-description {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.sharelinks-empty-button {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border: none;
  cursor: pointer;
}

.sharelinks-empty-button:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.sharelinks-empty-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Mobile responsive for empty state */
@media (max-width: 768px) {
  .sharelinks-empty-state {
    padding: 3rem 1.5rem;
  }
  
  .sharelinks-empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
  }
  
  .sharelinks-empty-title {
    font-size: 1.25rem;
  }
  
  .sharelinks-empty-description {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
  
  .sharelinks-empty-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
  }
}

/* ShareLinks Header Create Button Styling */
.sharelinks-create-button {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2) !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.sharelinks-create-button:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  transform: translateY(-1px) !important;
}

.sharelinks-create-button:focus {
  ring-color: rgba(37, 99, 235, 0.5) !important;
  ring-offset-width: 2px !important;
  ring-width: 2px !important;
}

.sharelinks-create-button:active {
  transform: translateY(0px) !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
}
.sharelinks-header-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
/* Mobile responsive for ShareLinks header - Compact Layout */
@media (max-width: 768px) {
  /* Main header container */
  .sharelinks-header-compact {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }
  
  /* Right side actions on mobile */
  .sharelinks-header-compact .sharelinks-header-actions {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
  }
  
  /* Create button full width on mobile */
  .sharelinks-header-compact .sharelinks-create-button {
    justify-content: center !important;
    width: 100% !important;
  }
  
  /* Badge centered on mobile */
  .sharelinks-header-compact .sharelinks-count-badge {
    align-self: center !important;
  }
}

/* TailAdmin Pro Modal Backdrop Styles - Enhanced */
.backdrop-blur-sm {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.backdrop-blur {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.backdrop-blur-md {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.backdrop-blur-lg {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.backdrop-blur-xl {
  -webkit-backdrop-filter: blur(40px) saturate(150%) brightness(0.8);
  backdrop-filter: blur(40px) saturate(150%) brightness(0.8);
}

/* Maximum Impact Backdrop - Ultra Strong */
.backdrop-blur-2xl {
  -webkit-backdrop-filter: blur(60px) saturate(180%) brightness(0.7) contrast(120%);
  backdrop-filter: blur(60px) saturate(180%) brightness(0.7) contrast(120%);
}

/* Enhanced modal overlay with TailAdmin Pro styling - Override to white */
.modal-overlay {
  background: white !important;
  background-color: white !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: all 0.3s ease-in-out;
}

/* Additional strong backdrop for important modals - Override to white */
.backdrop-strong {
  background: white !important;
  background-color: white !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Maximum Impact Modal Backdrop - Override to white */
.modal-backdrop-max {
  background: white !important;
  background-color: white !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-enter {
  opacity: 0;
  transform: scale(0.95);
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease-in-out;
}

.modal-exit {
  opacity: 1;
  transform: scale(1);
}

.modal-exit-active {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease-in-out;
}

/* Enhanced Modal Shadow Styles - TailAdmin Pro */
.shadow-2xl {
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Premium Modal Shadow */
.shadow-modal-premium {
  box-shadow: 
    0 32px 64px -12px rgba(0, 0, 0, 0.35),
    0 12px 32px -8px rgba(0, 0, 0, 0.2),
    0 4px 16px -4px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Ultra Premium Modal Shadow */
.shadow-modal-ultra {
  box-shadow: 
    0 40px 80px -16px rgba(0, 0, 0, 0.4),
    0 20px 40px -12px rgba(0, 0, 0, 0.25),
    0 8px 24px -6px rgba(0, 0, 0, 0.15),
    0 2px 8px -2px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Modal Glass Effect */
.modal-glass {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 32px 64px -12px rgba(0, 0, 0, 0.3),
    0 12px 32px -8px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* Ring shadows for depth */
.ring-shadow {
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ring-shadow-strong {
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(59, 130, 246, 0.1),
    0 32px 64px -12px rgba(0, 0, 0, 0.35);
}

/* TailAdmin Pro Brand Colors */
:root {
    --color-brand-50: #eff6ff;
    --color-brand-500: #3b82f6;
    --color-brand-600: #2563eb;
}

/* TailAdmin Pro Sidebar Navigation */
.w-72\.5 {
    width: 18.125rem; /* 290px */
}

.py-5\.5 {
    padding-top: 1.375rem;
    padding-bottom: 1.375rem;
}

.py-6\.5 {
    padding-top: 1.625rem;
    padding-bottom: 1.625rem;
}

.text-title-md {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-bodydark1 {
    color: #64748b;
}

.text-bodydark2 {
    color: #8a99af;
}

.text-gray-700 {
    color: #374151 !important;
}

.bg-primary {
    background-color: var(--color-brand-600);
    background-color: #2563eb; /* fallback */
}

.bg-graydark {
    background-color: #f1f5f9;
}

.bg-graydark-hover {
    background-color: #f8fafc;
}

.border-stroke {
    border-color: #e2e8f0;
}

.shadow-card {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.dark .bg-meta-4 {
    background-color: #313d4a;
}

/* Remove list bullets and padding */
.list-none {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* TailAdmin Pro menu hover effects */
.group:hover .text-gray-700 {
    color: #374151 !important;
}

.hover\:bg-graydark:hover {
    background-color: #f8fafc !important;
}

.hover\:bg-gray-50:hover {
    background-color: #f8fafc !important;
}

.hover\:text-gray-700:hover {
    color: #374151 !important;
}

/* Active state styling - brand colors like TailAdmin Pro */
.bg-gray-100 {
    background-color: var(--color-brand-50) !important;
    background-color: #eff6ff !important; /* fallback - brand-50 equivalent */
}

.text-gray-900 {
    color: var(--color-brand-500) !important;
    color: #3b82f6 !important; /* fallback - brand-500 equivalent */
}

.border-l-4 {
    border-left-width: 4px !important;
}

.border-primary {
    border-color: var(--color-brand-500) !important;
    border-color: #3b82f6 !important; /* fallback */
}

/* ShareLinks Pagination CSS */
.sharelinks-pagination {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sharelinks-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sharelinks-pagination-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.sharelinks-pagination-btn:hover:not(:disabled) {
    background-color: #f9fafb;
}

.sharelinks-pagination-btn:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.sharelinks-pagination-btn.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.sharelinks-entries-select {
    margin: 0 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    background-color: #ffffff;
}

.sharelinks-entries-select:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
}

.sharelinks-showing-info {
    font-size: 0.875rem;
    color: #374151;
}

/* TailAdmin Pro Header CSS */
.text-title-md2 {
    font-size: 1.5rem;
    line-height: 2rem;
}

.z-999 {
    z-index: 999;
}

.drop-shadow-1 {
    filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
}

.shadow-2 {
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

.bg-boxdark {
    background-color: #24303f;
}

.bg-primary {
    background-color: #3c50e0;
}

.bg-gray {
    background-color: #eff4fb;
}

.bg-meta-4 {
    background-color: #313d4a;
}

.border-stroke {
    border-color: #e2e8f0;
}

.border-strokedark {
    border-color: #3d4852;
}

.text-primary {
    color: #3c50e0;
}

.h-8\.5 {
    height: 2.125rem;
}

.w-8\.5 {
    width: 2.125rem;
}

.h-12 {
    height: 3rem;
}

.w-12 {
    width: 3rem;
}

/* TailAdmin Pro responsive classes */
@media (min-width: 480px) {
    .xs\:gap-7 {
        gap: 1.75rem;
    }
}

@media (min-width: 640px) {
    .sm\:gap-7 {
        gap: 1.75rem;
    }
}

.gap-7 {
    gap: 1.75rem;
}

/* TailAdmin Pro responsive padding classes */
@media (min-width: 768px) {
    .md\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1536px) {
    .\32xl\:px-11 {
        padding-left: 2.75rem;
        padding-right: 2.75rem;
    }
}

/* Additional TailAdmin Pro missing classes */
.dark .bg-boxdark {
    background-color: #24303f;
}

.dark .text-white {
    color: #ffffff;
}

.dark .drop-shadow-none {
    filter: none;
}

/* Additional missing TailAdmin Pro classes */
.border-stroke {
    border-color: #e2e8f0;
}

.z-50 {
    z-index: 50;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.font-semibold {
    font-weight: 600;
}

.text-black {
    color: #000000;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.hidden {
    display: none;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-right {
    text-align: right;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.rounded-full {
    border-radius: 9999px;
}

.text-white {
    color: #ffffff;
}

.relative {
    position: relative;
}

.fill-current {
    fill: currentColor;
}

/* Large screen responsive classes */
@media (min-width: 1024px) {
    .lg\:block {
        display: block;
    }
}

@media (min-width: 640px) {
    .sm\:block {
        display: block;
    }
}

/* TailAdmin Pro Dropdown Menu CSS */
.w-62\.5 {
    width: 15.625rem;
}

.shadow-default {
    box-shadow: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
}

.border-strokedark {
    border-color: #3d4852;
}

.bg-boxdark {
    background-color: #24303f;
}

.text-primary {
    color: #3c50e0;
}

.hover\:text-primary:hover {
    color: #3c50e0;
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-3\.5 {
    gap: 0.875rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.rounded-sm {
    border-radius: 0.125rem;
}

.rounded {
    border-radius: 0.25rem;
}

.absolute {
    position: absolute;
}

.right-0 {
    right: 0;
}

.mt-4 {
    margin-top: 1rem;
}

.flex-col {
    flex-direction: column;
}

.w-full {
    width: 100%;
}

.cursor-pointer {
    cursor: pointer;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
    transition-duration: 300ms;
}

.text-gray-500 {
    color: #6b7280;
}

.dark .text-gray-400 {
    color: #9ca3af;
}

.dark .bg-meta-4 {
    background-color: #313d4a;
}

.dark .border-strokedark {
    border-color: #3d4852;
}

.dark .bg-boxdark {
    background-color: #24303f;
}

@media (min-width: 1024px) {
    .lg\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

/* TailAdmin Pro Header User Profile CSS - Complete Set */
.text-title-md2 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
}

.z-999 {
    z-index: 999;
}

.drop-shadow-1 {
    filter: drop-shadow(0px 1px 0px rgba(0, 0, 0, 0.05));
}

.shadow-2 {
    box-shadow: 0px 7px 20px 0px rgba(0, 0, 0, 0.04);
}

.h-8\.5 {
    height: 2.125rem;
}

.w-8\.5 {
    width: 2.125rem;
}

.h-12 {
    height: 3rem;
}

.w-12 {
    width: 3rem;
}

.object-cover {
    object-fit: cover;
}

/* User Dropdown Profile - TailAdmin Pro Style */
.user-dropdown-container {
    position: relative;
}

/* Remove any default button styling and hover effects */
.user-dropdown-container button,
.user-dropdown-container button:hover,
.user-dropdown-container button:focus,
.user-dropdown-container button:active,
.user-dropdown-container button:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    color: inherit !important;
}

/* Ensure no inherited hover styles from parent elements */
.user-dropdown-container:hover button,
.user-dropdown-container:focus-within button {
    background: transparent !important;
    background-color: transparent !important;
}

.user-dropdown-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    background: transparent !important;
    border: none;
    padding: 0;
    transition: none;
}

.user-dropdown-button:hover,
.user-dropdown-button:focus,
.user-dropdown-button:active {
    background: transparent !important;
    outline: none;
    box-shadow: none;
}

.user-dropdown-avatar {
    height: 3rem;
    width: 3rem;
    border-radius: 9999px;
    background-color: #3c50e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.user-dropdown-avatar img {
    height: 3rem;
    width: 3rem;
    border-radius: 9999px;
    object-fit: cover;
}

.user-dropdown-text {
    text-align: right;
    display: none;
}

@media (min-width: 1024px) {
    .user-dropdown-text {
        display: block;
    }
}

.user-dropdown-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.25;
}

.user-dropdown-email {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1;
}

.user-dropdown-arrow {
    display: none;
    fill: currentColor;
}

@media (min-width: 640px) {
    .user-dropdown-arrow {
        display: block;
    }
}

/* Dropdown Menu - TailAdmin Pro Professional Styling */
.user-dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: 1rem;
    width: 15.625rem;
    display: flex;
    flex-direction: column;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 50;
}

.user-dropdown-menu.hidden {
    display: none;
}

.user-dropdown-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.user-dropdown-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-dropdown-header-avatar {
    height: 3rem;
    width: 3rem;
    border-radius: 9999px;
    background-color: #3c50e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.user-dropdown-header-avatar img {
    height: 3rem;
    width: 3rem;
    border-radius: 9999px;
    object-fit: cover;
}

.user-dropdown-header-text {
    display: flex;
    flex-direction: column;
}

.user-dropdown-header-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.25;
}

.user-dropdown-header-email {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1;
}

.user-dropdown-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    padding: 0.5rem 0.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.user-dropdown-item:hover {
    color: #3c50e0;
    background-color: #f9fafb;
}

@media (min-width: 1024px) {
    .user-dropdown-item {
        font-size: 1rem;
    }
}

.user-dropdown-item svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
}

.user-dropdown-signout {
    padding: 1rem 1.5rem;
}

.user-dropdown-signout-btn {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    padding: 0.5rem 0.5rem;
    border-radius: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.user-dropdown-signout-btn:hover {
    color: #3c50e0;
    background-color: #f9fafb;
}

@media (min-width: 1024px) {
    .user-dropdown-signout-btn {
        font-size: 1rem;
    }
}

.user-dropdown-signout-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
}

/* Dark mode support */
.dark .user-dropdown-name {
    color: #ffffff;
}

.dark .user-dropdown-email {
    color: #9ca3af;
}

.dark .user-dropdown-menu {
    background-color: #24303f;
    border-color: #3d4852;
}

.dark .user-dropdown-header {
    border-color: #3d4852;
}

.dark .user-dropdown-header-name {
    color: #ffffff;
}

.dark .user-dropdown-header-email {
    color: #9ca3af;
}

.dark .user-dropdown-nav {
    border-color: #3d4852;
}

.dark .user-dropdown-item {
    color: #d1d5db;
}

.dark .user-dropdown-item:hover {
    color: #3c50e0;
    background-color: #313d4a;
}

.dark .user-dropdown-signout-btn {
    color: #d1d5db;
}

.dark .user-dropdown-signout-btn:hover {
    color: #3c50e0;
    background-color: #313d4a;
}

/* TailAdmin Pro Login Styles */
.tailadmin-login-container {
    font-family: 'Inter', 'ui-sans-serif', 'system-ui', '-apple-system', 'BlinkMacSystemFont', sans-serif;
}

.tailadmin-login-form {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.dark .tailadmin-login-form {
    background: rgba(31, 41, 55, 0.95);
}

.tailadmin-google-btn {
    transition: all 0.2s ease-in-out;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tailadmin-google-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tailadmin-gradient-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.tailadmin-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.1"%3E%3Ccircle cx="30" cy="30" r="2"%3E%3C/circle%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
}

.tailadmin-logo {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s ease-in-out;
}

.tailadmin-logo:hover {
    transform: scale(1.05);
}

.tailadmin-input {
    transition: all 0.2s ease-in-out;
}

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

.tailadmin-input:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.dark .tailadmin-input:disabled {
    background-color: #374151;
    color: #6b7280;
}

.tailadmin-pulse-dot {
    animation: tailadmin-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes tailadmin-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.tailadmin-pulse-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.tailadmin-pulse-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .tailadmin-login-container .hidden.lg\\:block {
        display: none !important;
    }
    
    .tailadmin-login-container .lg\\:flex-none {
        flex: none;
    }
    
    .tailadmin-login-container .flex.w-full {
        width: 100%;
    }
}

/* Dark mode improvements */
.dark .tailadmin-login-container {
    background-color: #111827;
}

.dark .tailadmin-google-btn {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

.dark .tailadmin-google-btn:hover {
    background-color: #4b5563;
    border-color: #6b7280;
}

/* Focus states for accessibility */
.tailadmin-login-container button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.tailadmin-login-container input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Simplified Google Login Button Styles */
.google-login-btn {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Google Sans', 'Roboto', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1), 0 1px 3px 1px rgba(60, 64, 67, 0.05);
    min-width: 240px;
    cursor: pointer;
}

.google-login-btn:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.google-login-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.google-login-btn .text {
    font-weight: 500;
    letter-spacing: 0.25px;
    color: #3c4043;
}

/* Dark mode support for Google button */
.dark .google-login-btn {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark .google-login-btn:hover {
    background: #4a5568;
    border-color: #718096;
}

.dark .google-login-btn .text {
    color: #e2e8f0;
}

/* Enhanced ripple effect */
.google-login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.google-login-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Professional loading state */
.google-login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.google-login-btn.loading svg {
    animation: google-btn-spin 1s linear infinite;
}

@keyframes google-btn-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Accessibility improvements */
.google-login-btn:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .google-login-btn {
        border-width: 2px;
        border-color: #000;
    }
    
    .google-login-btn .text {
        color: #000;
        font-weight: 600;
    }
}

/* Google Login Button - High Specificity Override */
html body div.fixed.inset-0 div button.auth-modal-button,
html body div[class*="fixed"] div[class*="relative"] button.auth-modal-button,
html body button[class*="auth-modal-button"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #dadce0 !important;
    border-radius: 8px !important;
    color: #3c4043 !important;
    font-weight: 500 !important;
    padding: 12px 24px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1), 0 1px 3px 1px rgba(60, 64, 67, 0.05) !important;
    outline: none !important;
    /* Reset any gradients or conflicting backgrounds */
    background-attachment: initial !important;
    background-clip: initial !important;
    background-origin: initial !important;
    background-position: initial !important;
    background-repeat: initial !important;
    background-size: initial !important;
}

/* Hover state with highest specificity */
html body div.fixed.inset-0 div button.auth-modal-button:hover,
html body div[class*="fixed"] div[class*="relative"] button.auth-modal-button:hover,
html body button[class*="auth-modal-button"]:hover {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
    border-color: #d2d6da !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.15), 0 4px 8px 3px rgba(60, 64, 67, 0.1) !important;
}

/* Icon styling with high specificity */
html body button[class*="auth-modal-button"] svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Text styling with high specificity */
html body button[class*="auth-modal-button"] span {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #3c4043 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Critical: Reset any gradient/background conflicts for auth button */
button.auth-modal-button,
html body button.auth-modal-button,
html body div button.auth-modal-button {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    background-clip: padding-box !important;
}

button.auth-modal-button:hover,
html body button.auth-modal-button:hover,
html body div button.auth-modal-button:hover {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
    background-clip: padding-box !important;
}

/* Force reset for any gradient classes that might be applied */
button.auth-modal-button[class*="gradient"],
button.auth-modal-button[class*="bg-gradient"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

button.auth-modal-button[class*="gradient"]:hover,
button.auth-modal-button[class*="bg-gradient"]:hover {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
}

/* Disabled Menu Items Styling */
button[disabled],
button.disabled,
button[class*="cursor-not-allowed"] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important; /* Allow tooltip */
}

button[disabled]:hover,
button.disabled:hover,
button[class*="cursor-not-allowed"]:hover {
    background: transparent !important;
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Sidebar disabled menu styling */
nav button[disabled],
aside button[disabled] {
    background-color: #f9fafb !important;
    color: #9ca3af !important;
    border-left: 4px solid transparent !important;
}

nav button[disabled]:hover,
aside button[disabled]:hover {
    background-color: #f9fafb !important;
    color: #9ca3af !important;
}
