/* Brand Colors - Customer Preferred */
:root {
  --brand-red: #d71b36;
  --brand-yellow: #f39902;
  --brand-black: #000000;
  --brand-red-light: rgba(215, 27, 54, 0.1);
  --brand-yellow-light: rgba(243, 153, 2, 0.1);
}

/* Admin top menu search bar - wider width */
.admin-top-menu-search-wrap {
  min-width: 220px;
  max-width: 380px;
  width: 100%;
}

/* Custom styles for login form messages */

.error-message {
  animation: slideInDown 0.3s ease-out;
}

.success-message {
  animation: slideInDown 0.3s ease-out;
}

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

/* Loading spinner styles */
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn svg.animate-spin {
  animation: spin 1s linear infinite;
}

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

/* Form input focus styles - Using brand red */
.form-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-light);
}

/* Error input styles */
.form-input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Success input styles */
.form-input.success {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Form select focus */
.form-select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-light);
}

/* Textarea focus */
.form-textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-light);
}

/* Multiselect focus */
.form-multiselect:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-light);
}

/* Active menu item accent */
.sidebar .nav-item > a.active::before,
.sidebar .nav-item > button.active::before {
  background-color: var(--brand-red) !important;
}

/* Active menu item text color */
.sidebar .nav-item > a.active,
.sidebar .nav-item > button.active {
  color: var(--brand-red) !important;
}

/* Side menu icons - Theme colored */
.sidebar .nav-item svg {
  color: var(--brand-red);
}

.sidebar .nav-item > a.active svg,
.sidebar .nav-item > button.active svg {
  color: var(--brand-red) !important;
}

/* VHMExpress logo gradient */
.main-logo span,
.dark .main-logo span {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
}

/* Breadcrumb styles */
ul.flex.space-x-2 a.text-primary,
ul.flex.space-x-2 li a {
  color: var(--brand-red) !important;
}

ul.flex.space-x-2 li[class*="before:content"] {
  color: var(--brand-yellow) !important;
}

ul.flex.space-x-2 li[class*="before:content"]::before {
  color: var(--brand-yellow) !important;
}

/* DataTable borders - All same color, half width, half opacity */
table.dataTable {
  border: 0.5px solid rgba(215, 27, 54, 0.5) !important;
  border-bottom: 0.5px solid rgba(215, 27, 54, 0.5) !important;
  border-collapse: separate;
  border-spacing: 0;
}

table.dataTable thead th {
  border-bottom: 0.5px solid rgba(215, 27, 54, 0.5) !important;
  border-right: 0.5px solid rgba(215, 27, 54, 0.5) !important;
}

table.dataTable thead th:last-child {
  border-right: none !important;
}

table.dataTable tbody td {
  border-bottom: 0.5px solid rgba(215, 27, 54, 0.5) !important;
  border-right: 0.5px solid rgba(215, 27, 54, 0.5) !important;
}

table.dataTable tbody tr:last-child td {
  border-bottom: 0.5px solid rgba(215, 27, 54, 0.5) !important;
}

table.dataTable tbody tr td:last-child {
  border-right: none !important;
}

/* DataTable action buttons - Keep original styles, no gradient */

/* Staff filter buttons - Bordered by default, gradient only for active */
.filter-btn {
  background: transparent !important;
  border: 1px solid var(--brand-red) !important;
  color: var(--brand-red) !important;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(215, 27, 54, 0.1) !important;
  border-color: var(--brand-red) !important;
  color: var(--brand-red) !important;
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(215, 27, 54, 0.9) 0%, rgba(243, 153, 2, 0.9) 100%) !important;
  border: 1px solid transparent !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(215, 27, 54, 0.3);
}

.filter-btn.active:hover {
  background: linear-gradient(135deg, rgba(243, 153, 2, 0.9) 0%, rgba(215, 27, 54, 0.9) 100%) !important;
  box-shadow: 0 4px 8px rgba(215, 27, 54, 0.4);
}

/* Primary buttons (Create buttons) - Gradient theme colored with reduced opacity */
.btn-primary {
  background: linear-gradient(135deg, rgba(215, 27, 54, 0.9) 0%, rgba(243, 153, 2, 0.9) 100%) !important;
  border: none !important;
  color: white !important;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(243, 153, 2, 0.9) 0%, rgba(215, 27, 54, 0.9) 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(215, 27, 54, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Outline primary button */
.btn-outline-primary {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* Badge outline primary */
.badge-outline-primary {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* Brand colors for divider lines */
hr {
  border-color: rgba(215, 27, 54, 0.1);
}

/* Brand red for active states in dropdowns */
.dropdown-menu > li > a.active,
.dropdown-menu > li > button.active {
  background-color: var(--brand-red-light);
  color: var(--brand-red);
}

/* Brand yellow for warning/attention elements */
.alert-warning,
.badge-warning {
  border-left: 3px solid var(--brand-yellow);
}

/* Brand red for important notifications */
.alert-danger,
.badge-danger {
  border-left: 3px solid var(--brand-red);
}

/* Note: Status badges (success, danger, warning, info, primary) keep their original colors unchanged */

/* Brand colors for pagination active state */
.pagination .active a,
.pagination .active button {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: white;
}

/* Brand colors for tabs */
.tabs-list .tab.active {
  border-bottom-color: var(--brand-red);
  color: var(--brand-red);
}

/* Brand yellow for loading spinner accent */
.screen_loader svg {
  fill: var(--brand-red);
}

/* Brand colors for checkbox and radio checked states */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
}

/* Brand colors for range slider */
input[type="range"]::-webkit-slider-thumb {
  background-color: var(--brand-red);
}

input[type="range"]::-moz-range-thumb {
  background-color: var(--brand-red);
}

/* Brand colors for progress bars */
.progress-bar {
  background-color: var(--brand-red);
}

/* Subtle brand red for scrollbar thumb (webkit browsers) */
::-webkit-scrollbar-thumb {
  background-color: rgba(215, 27, 54, 0.3);
}

/* VHMExpress Glass Text Effect - Works in both light and dark mode */
.vhmexpress-glass-text {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.6),
    0 0 60px rgba(255, 255, 255, 0.4),
    0 0 80px rgba(215, 27, 54, 0.3),
    0 0 100px rgba(243, 153, 2, 0.2);
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(255, 255, 255, 0.9) 25%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.9) 75%,
    rgba(255, 255, 255, 0.98) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: glass-shimmer 4s ease-in-out infinite;
}

.dark .vhmexpress-glass-text {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 
    0 0 30px rgba(255, 255, 255, 0.9),
    0 0 60px rgba(255, 255, 255, 0.7),
    0 0 90px rgba(255, 255, 255, 0.5),
    0 0 120px rgba(215, 27, 54, 0.4),
    0 0 150px rgba(243, 153, 2, 0.3);
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(255, 255, 255, 0.95) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.95) 75%,
    rgba(255, 255, 255, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Add gradient accent glow behind glass text */
.vhmexpress-glass-text::after {
  content: 'VHMExpress';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #d71b36 0%, #f39902 50%, #d71b36 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  z-index: -1;
  filter: blur(8px);
  animation: gradient-pulse 3s ease-in-out infinite;
}

@keyframes glass-shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes gradient-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.02);
  }
}

/* Login button with theme colors */
.btn-login-theme {
  background: linear-gradient(135deg, #d71b36 0%, #f39902 100%);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  position: relative;
  overflow: hidden;
}

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

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

.btn-login-theme:hover {
  background: linear-gradient(135deg, #f39902 0%, #d71b36 100%);
  transform: translateY(-2px);
}

.btn-login-theme:active {
  transform: translateY(0);
}

/* Login page logo styling */
.login-logo {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.dark .login-logo {
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.login-logo:hover {
  filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.3));
  transform: scale(1.03);
}

.dark .login-logo:hover {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

/* Login form inputs styling - Light and Dark mode support */
.login-form-container .form-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1f2937;
  backdrop-filter: blur(10px);
}

.dark .login-form-container .form-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.login-form-container .form-input::placeholder {
  color: rgba(107, 114, 128, 0.7);
}

.dark .login-form-container .form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-form-container .form-input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: #f39902;
  box-shadow: 0 0 0 3px rgba(243, 153, 2, 0.2);
  color: #1f2937;
}

.dark .login-form-container .form-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #f39902;
  box-shadow: 0 0 0 3px rgba(243, 153, 2, 0.2);
  color: white;
}

.login-form-container label {
  color: #374151;
  font-weight: 600;
}

.dark .login-form-container label {
  color: rgba(255, 255, 255, 0.9);
}

/* Vendor feature cards (E-commerce, Custom Search, Custom Barcode) – same design, light/dark */
.vendor-feature-card {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.dark .vendor-feature-card {
  background-color: #1b2e4b;
  border-color: #1b2e4b;
}

.vendor-feature-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.dark .vendor-feature-card-title {
  color: #d1d5db;
}

.vendor-feature-card-desc {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.dark .vendor-feature-card-desc {
  color: #9ca3af;
}

/* Vendor feature toggles (E-commerce, Custom Search, Custom Barcode) – light/dark compatible */
.vendor-feature-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.vendor-feature-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.vendor-feature-toggle-track {
  display: inline-flex;
  align-items: center;
  width: 2.75rem;
  height: 1.5rem;
  padding: 0.125rem;
  border-radius: 9999px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #d1d5db;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dark .vendor-feature-toggle-track {
  background-color: #374151;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.vendor-feature-toggle-input:focus-visible + .vendor-feature-toggle-track {
  outline: 2px solid var(--brand-red, #d71b36);
  outline-offset: 2px;
}

.vendor-feature-toggle-input:checked + .vendor-feature-toggle-track {
  background-color: var(--brand-red, #d71b36);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dark .vendor-feature-toggle-input:checked + .vendor-feature-toggle-track {
  background-color: var(--brand-red, #d71b36);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.vendor-feature-toggle-thumb {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  pointer-events: none;
}

.dark .vendor-feature-toggle-thumb {
  background-color: #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.vendor-feature-toggle-input:checked + .vendor-feature-toggle-track .vendor-feature-toggle-thumb {
  transform: translateX(1.25rem);
}

.vendor-feature-toggle-status {
  min-width: 4rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.vendor-feature-toggle-status--on {
  color: #059669;
}

.dark .vendor-feature-toggle-status--on {
  color: #34d399;
}

.vendor-feature-toggle-status--off {
  color: #6b7280;
}

.dark .vendor-feature-toggle-status--off {
  color: #9ca3af;
}

/* Admin DataTable export toolbar (uniform layout) */
.admin-dt-export-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.75rem;
}

.admin-dt-export-buttons {
  display: inline-flex !important;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-dt-export-buttons .dt-button,
.admin-dt-export-buttons .btn {
  margin: 0 !important;
}

