* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ========================================================
   1. DataTables Custom Styling
======================================================== */
table thead {
  background: linear-gradient(to right, #2563EB, #1E3A8A) !important;
  background-image: linear-gradient(to right, theme('colors.blue.600'), theme('colors.blue.800')) !important;
  color: white !important;
  text-align: center !important;
}

.dataTables_filter {
  margin-bottom: 3px !important;
}

.dataTables_filter input {
  border: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid gray !important;
}

.text-center {
  text-align: center !important;
}


/* ========================================================
   2. Scrollbar Styling (Sidebar)
======================================================== */

/* WebKit */
#sidebar .overflow-y-auto::-webkit-scrollbar {
  width: 10px;
}

#sidebar .overflow-y-auto::-webkit-scrollbar-track {
  background: #111827;
  border-radius: 8px;
  margin: 4px 0;
}

#sidebar .overflow-y-auto::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 8px;
  border: 2px solid #111827;
}

#sidebar .overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #60a5fa;
}

/* Firefox */
#sidebar .overflow-y-auto {
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #111827;
}


/* ========================================================
   3. Utility Classes & Fixes
======================================================== */
[x-cloak] {
  display: none !important;
}

.touch-action-pan-x-y {
  touch-action: pan-x pan-y;
}

main, .container {
  overflow-y: auto;
  touch-action: auto;
}

.hide-scrollbar {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}


/* ========================================================
   4. Customization Page Styles
======================================================== */

/* Preview Initials */
#companyLogoInitial,
#faviconInitial,
#desktopBackgroundInitial,
#mobileBackgroundInitial {
  background-color: rgba(219, 234, 254, 1);
  color: rgba(37, 99, 235, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: bold;
  font-size: 1.5rem;
  border-radius: 0.375rem;
}

#faviconInitial,
#mobileBackgroundInitial {
  font-size: 1.25rem;
}

/* Preview Container */
.preview-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#companyLogoPreview,
#faviconPreview,
#desktopBackgroundPreview,
#mobileBackgroundPreview {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* Toggle Switch */
.toggle-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label {
  position: relative;
  display: block;
  width: 48px;
  height: 24px;
  background-color: #d1d5db;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-label:after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.toggle-checkbox:checked + .toggle-label {
  background-color: #2563eb;
}

.toggle-checkbox:checked + .toggle-label:after {
  transform: translateX(24px);
}

.toggle-status {
  transition: color 0.3s ease;
}

.toggle-checkbox:checked ~ .toggle-status {
  color: #2563eb;
}

.toggle-checkbox:disabled + .toggle-label {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Remove Background Buttons */
.remove-desktop-background,
.remove-mobile-background {
  transition: background-color 0.3s ease;
}

.remove-desktop-background:hover,
.remove-mobile-background:hover {
  background-color: #dc2626;
}


/* ========================================================
   5. Select2 Styling
======================================================== */

/* Base container */
.select2-container--default .select2-selection--multiple {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #fff;
  min-height: 40px;
  outline: none;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
  outline: none;
}

/* Choice chips */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #e5e7eb;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  padding: 2px 8px;
  margin: 2px 2px 2px 0;
  font-size: 0.875rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #6b7280;
  margin-right: 4px;
  cursor: pointer;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #374151;
}

.select2-container .select2-search--inline .select2-search__field {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.1rem;
  padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  padding-left: 15px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
  color: #6b7280;
  margin-right: 8px;
  cursor: pointer;
}

/* Dropdown options */
.select2-container--default .select2-results__option {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.select2-container--default .select2-results__option--highlighted {
  background-color: #3b82f6;
  color: #fff;
}


#languageDropdownMenu,
#profileDropdownMenu {
    position: fixed;
    top: 60px; /* Adjust based on your header height */
    right: 10px; /* Align to the right edge with some padding */
    width: 32; /* Already set for language dropdown */
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it appears above other elements */
}

/* On mobile, ensure the dropdown fits within the viewport */
@media (max-width: 768px) {
    #languageDropdownMenu,
    #profileDropdownMenu {
        top: 50px; /* Adjust if header height changes on mobile */
        right: 5px; /* Closer to the edge on smaller screens */
        width: 120px; /* Slightly smaller width for mobile */
    }
}




/*shimmer effect*/
/* app.css */

/* app.css */

/* app.css */

/* Shimmer effect for mobile only */
@media (max-width: 767px) {
  .shimmer {
    position: relative;
    overflow: hidden;
    background: #f6f7f8;
    background-image: linear-gradient(
      to right,
      #f6f7f8 0%,
      #edeef1 20%,
      #f6f7f8 40%,
      #f6f7f8 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
  }

  .shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
  }

  @keyframes shimmer {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }
}

/* Hide shimmer elements on desktop */
@media (min-width: 768px) {
  .shimmer {
    display: none;
  }
}

/* Ensure no transition effects on loading states */
header,
#loading-state,
#main-content,
#footer-loading-state,
#footer-content {
  transition: none !important;
}