/* 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);
}

/* 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;
}

/* 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);
}

/* Login button with theme colors - matching admin panel */
.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 - Always white text */
.login-form-container .form-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.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.15);
  border-color: #f39902;
  box-shadow: 0 0 0 3px rgba(243, 153, 2, 0.2);
  color: white;
}

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

/* Vendor password reset card - always dark inputs (readable in any theme) */
.vendor-password-reset-card .form-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}

.vendor-password-reset-card .form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.vendor-password-reset-card .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: #fff;
}

.vendor-password-reset-card label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Vendor theme - Button color gradients plus black gradient */
.vendor-theme-bg {
  background: linear-gradient(135deg, #d71b36 0%, #f39902 20%, #d71b36 40%, #1e293b 60%, #0f172a 80%, #000000 100%);
}

.dark .vendor-theme-bg {
  background: linear-gradient(135deg, #d71b36 0%, #f39902 20%, #d71b36 40%, #1e293b 60%, #0f172a 80%, #000000 100%);
}
