/**
 * System-wide Color Override
 * This file overrides all colors in the system to match our color palette:
 * Primary: #0a0a0a (dark), #ffffff (white)
 * Secondary: #e60000 (vibrant red)
 * Background: #121212 (dark background)
 * Grey: #cccccc, #999999, etc.
 */

:root {
  /* Primary Colors */
  --color-base-dark: #0a0a0a !important;
  --color-base-light: #ffffff !important;
  --color-secondary: #e60000 !important;
  
  /* Semantic Color Variables */
  --color-bg-primary: #121212 !important;
  --color-bg-secondary: #1a1a1a !important;
  --color-bg-tertiary: #252525 !important;
  --color-bg-light: #ffffff !important;
  --color-bg-card: #1a1a1a !important;
  --color-bg-input: #252525 !important;
  --color-bg-hover: #333333 !important;
  
  --color-text-primary: #ffffff !important;
  --color-text-secondary: #cccccc !important;
  --color-text-muted: #999999 !important;
  --color-text-dark: #0a0a0a !important;
  
  --color-accent: #e60000 !important;
  --color-accent-hover: #cc0000 !important;
  --color-accent-light: #ff3333 !important;
  --color-accent-dark: #b30000 !important;
  
  /* Bootstrap Override */
  --bs-primary: #e60000 !important;
  --bs-secondary: #0a0a0a !important;
  --bs-body-bg: #121212 !important;
  --bs-body-color: #ffffff !important;
  
  /* HSL Variables for Base Colors */
  --base-h: 0 !important;
  --base-s: 100% !important;
  --base-l: 45% !important;
  --base: var(--base-h) var(--base-s) var(--base-l) !important;
  
  --base-two-h: 0 !important;
  --base-two-s: 0% !important;
  --base-two-l: 10% !important;
  --base-two: var(--base-two-h) var(--base-two-s) var(--base-two-l) !important;
  
  /* Override other HSL variables */
  --black-h: 0 !important;
  --black-s: 0% !important;
  --black-l: 4% !important;
  --black: var(--black-h) var(--black-s) var(--black-l) !important;
  
  --body-bg: 0 0% 7% !important;
  --footer-bg: 0 0% 5% !important;
  
  /* Box shadows with red tint */
  --box-shadow: 0 4px 10px rgba(230, 0, 0, 0.15) !important;
  --box-shadow-two: 0 0 10px rgba(230, 0, 0, 0.1) !important;
}

/* Primary Color Overrides */
.text-primary,
.btn-link,
.nav-link.active,
.page-link,
.form-check-input:checked,
.form-check-input:checked ~ .form-check-label,
.dropdown-item.active, 
.dropdown-item:active,
.nav-pills .nav-link.active,
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active,
.page-item.active .page-link,
.progress-bar,
.text--base,
.text--primary,
.btn--base,
.btn--primary {
  color: #ffffff !important;
}

/* Secondary Color Overrides */
a,
.text-secondary,
.text--secondary {
  color: #e60000 !important;
}

/* Background Color Overrides */
.bg-primary,
.btn-primary,
.badge-primary,
.progress-bar,
.nav-pills .nav-link.active,
.page-item.active .page-link,
.list-group-item.active,
.dropdown-item.active,
.dropdown-item:active,
.btn--base,
.btn--primary,
.bg--base,
.bg--primary {
  background-color: #e60000 !important;
  border-color: #e60000 !important;
}

.bg-secondary,
.btn-secondary,
.bg--secondary {
  background-color: #0a0a0a !important;
  border-color: #0a0a0a !important;
}

/* Border Color Overrides */
.border-primary,
.page-link:focus,
.form-control:focus,
.form--control:focus,
.btn-outline-primary,
.btn-outline--primary {
  border-color: #e60000 !important;
}

.border-secondary,
.btn-outline-secondary,
.btn-outline--secondary {
  border-color: #0a0a0a !important;
}

/* Button Hover States */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn--primary:hover,
.btn--primary:focus,
.btn--primary:active,
.btn--base:hover,
.btn--base:focus,
.btn--base:active {
  background-color: #cc0000 !important;
  border-color: #cc0000 !important;
  color: #ffffff !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn--secondary:hover,
.btn--secondary:focus,
.btn--secondary:active {
  background-color: #1a1a1a !important;
  border-color: #1a1a1a !important;
  color: #ffffff !important;
}

/* Link Hover States */
a:hover,
.btn-link:hover,
.page-link:hover {
  color: #ff3333 !important;
}

/* Form Elements */
.form-control:focus,
.form--control:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 0, 0, 0.25) !important;
}

.form-control,
.form--control {
  background-color: #ffffff !important;
  border-color: #e0e0e0 !important;
  color: #1a1a1a !important;
}

.form-control::placeholder,
.form--control::placeholder {
  color: #999999 !important;
}

/* Custom Elements */
.sidebar-nav .nav-link.active,
.sidebar-menu-item.active > a,
.sidebar__menu .sidebar-menu-item.active > a {
  background-color: #e60000 !important;
  color: #ffffff !important;
}

.sidebar-nav .nav-link:hover,
.sidebar__menu .sidebar-menu-item > a:hover {
  color: #ff3333 !important;
}

/* Table Elements */
.table-primary, 
.table-primary > td, 
.table-primary > th {
  background-color: rgba(230, 0, 0, 0.1) !important;
}

.table-secondary, 
.table-secondary > td, 
.table-secondary > th {
  background-color: rgba(10, 10, 10, 0.1) !important;
}

.table {
  color: #1a1a1a !important;
  background-color: #ffffff !important;
}

.table thead th {
  background-color: #f7f7f7 !important;
  color: #1a1a1a !important;
  border-color: #e0e0e0 !important;
}

.table tbody td {
  border-color: #e0e0e0 !important;
}

.table-hover tbody tr:hover {
  background-color: rgba(230, 0, 0, 0.05) !important;
}

/* Card Elements */
.card,
.custom--card {
  background-color: #ffffff !important;
  border-color: #e0e0e0 !important;
  color: #1a1a1a !important;
}

.card-header {
  background-color: #f7f7f7 !important;
  border-bottom-color: #e0e0e0 !important;
  color: #1a1a1a !important;
}

.card-footer {
  background-color: #f7f7f7 !important;
  border-top-color: #e0e0e0 !important;
}

/* Badges */
.badge--primary,
.badge--base {
  background-color: #e60000 !important;
  color: #ffffff !important;
}

.badge--secondary {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
}

/* Alerts */
.alert-primary {
  background-color: rgba(230, 0, 0, 0.1) !important;
  border-color: rgba(230, 0, 0, 0.2) !important;
  color: #1a1a1a !important;
}

.alert-secondary {
  background-color: rgba(10, 10, 10, 0.1) !important;
  border-color: rgba(10, 10, 10, 0.2) !important;
  color: #1a1a1a !important;
}

/* Icons */
.icon--base,
.icon--primary {
  color: #e60000 !important;
}

.icon--secondary {
  color: #1a1a1a !important;
}

/* Dashboard Elements */
.dashboard-widget__icon,
.dashboard-widget__number {
  color: #e60000 !important;
}

/* Event Cards */
.event-card {
  background-color: #ffffff !important;
  border-color: #e0e0e0 !important;
}

.event-card__date,
.event-card__badge,
.event-card__price,
.event-card__meta i,
.event-card__action-btn:hover {
  color: #ffffff !important;
  background-color: #e60000 !important;
}

.event-card__title a {
  color: #1a1a1a !important;
}

.event-card__title a:hover {
  color: #e60000 !important;
}

.event-card__meta {
  color: #777777 !important;
}

/* Banner Elements */
.banner-form__icon {
  background-color: #e60000 !important;
  color: #ffffff !important;
}

.banner-form .search-btn button {
  background-color: #e60000 !important;
}

.banner-content__subtitle {
  border-left-color: #e60000 !important;
}

.banner-thumb__shape {
  border-color: #e60000 !important;
}

.banner-thumb__shape-two {
  background-color: #e60000 !important;
  opacity: 0.2 !important;
}

/* Header & Footer */
.header {
  background-color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.header-main {
  background-color: #ffffff !important;
}

.header::before {
  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='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat !important;
}

.navbar-light .navbar-nav .nav-link {
  color: #0a0a0a !important;
}

.navbar-nav .nav-link {
  color: #0a0a0a !important;
}

.navbar-nav .nav-link:hover {
  color: #e60000 !important;
}

.navbar-toggler i {
  color: #0a0a0a !important;
}

.footer-area {
  background-color: #0a0a0a !important;
}

.bottom-footer {
  background-color: #000000 !important;
  border-top: 1px solid #333333 !important;
}

/* Dashboard Specific */
.dashboard-container {
  background-color: #ffffff !important;
}

.dashboard-section {
  background-color: #f7f7f7 !important;
  padding: 50px 0 70px !important;
}

.dashboard-wrapper {
  background-color: transparent !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.dashboard__left {
  background-color: #1a1a1a !important;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.05) !important;
}

.dashboard__right {
  background-color: #ffffff !important;
}

.stat-card {
  background-color: #ffffff !important;
  border: 1px solid #f0f0f0 !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03) !important;
  color: #1a1a1a !important;
}

.dashboard-panel {
  background-color: #ffffff !important;
  border-color: #e0e0e0 !important;
}

.dashboard-panel__header {
  background-color: #f7f7f7 !important;
  border-color: #e0e0e0 !important;
}

.dashboard-hero {
  background: linear-gradient(135deg, #e60000, #b30000) !important;
}

.notification-card {
  background-color: #ffffff !important;
  border-color: #e0e0e0 !important;
}

.notification-card--danger {
  border-left-color: #e60000 !important;
}

.quick-action-btn {
  background-color: #f7f7f7 !important;
  color: #1a1a1a !important;
}

.quick-action-btn:hover {
  background-color: #e60000 !important;
  color: #ffffff !important;
}

.quick-action-btn i {
  color: #e60000 !important;
}

.quick-action-btn:hover i {
  color: #ffffff !important;
}

/* Custom Buttons */
.btn {
  border-radius: 4px !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  padding: 10px 20px !important;
}

.btn--base, 
.btn--primary,
.btn-primary {
  background-color: #e60000 !important;
  border-color: #e60000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(230, 0, 0, 0.3) !important;
}

.btn--base:hover, 
.btn--primary:hover,
.btn-primary:hover {
  background-color: #cc0000 !important;
  border-color: #cc0000 !important;
  transform: translateY(-2px) !important;
}

/* Animation Effects */
.btn, .nav-link, a {
  transition: all 0.3s ease-in-out !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px !important;
}

::-webkit-scrollbar-track {
  background: #f1f1f1 !important;
}

::-webkit-scrollbar-thumb {
  background: #e60000 !important;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #cc0000 !important;
} 