@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --whiz-green: #a9cf3b;
  --whiz-green-dark: #8ecf2d;
  --whiz-green-hover: #89a700;
  --whiz-dark: #111111;
  --whiz-dark-light: #1a1a1a;
  --whiz-surface: #262626;
  --whiz-surface-border: #333333;
  --whiz-text-primary: #ffffff;
  --whiz-text-secondary: #c0c0c0;
  --whiz-text-muted: #a0a0a0;
  --whiz-border: rgba(255, 255, 255, 0.2);
}

/* Base resets & typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--whiz-dark);
  color: var(--whiz-text-primary);
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--whiz-dark); 
}
::-webkit-scrollbar-thumb {
  background: var(--whiz-surface-border); 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--whiz-text-muted); 
}

/* Intiwhiz Theme Gradients & Backgrounds */
.bg-whiz-gradient {
  background: linear-gradient(180deg, #3b3b3d 0%, #2a2a2c 100%);
}

.bg-whiz-green {
  background: linear-gradient(135deg, var(--whiz-green) 0%, var(--whiz-green-dark) 100%);
}

.bg-whiz-green:hover {
  background: linear-gradient(135deg, var(--whiz-green-dark) 0%, var(--whiz-green-hover) 100%);
}

.text-whiz-green {
  color: var(--whiz-green);
}

.border-whiz-green {
  border-color: var(--whiz-green);
}

.underlined-whiz, .underlined-title {
  border-bottom: 2px solid var(--whiz-green);
  display: inline-block;
  padding-bottom: 4px;
}

/* Intiwhiz Boxes & Cards */
.whiz-card-dark, .whiz-box {
  background-color: var(--whiz-surface);
  border: 1px solid var(--whiz-border);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.whiz-box:hover {
  transform: translateY(-2px);
  border-color: rgba(169, 207, 59, 0.5);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.whiz-input {
  background-color: var(--whiz-dark-light);
  border: 1px solid var(--whiz-surface-border);
  color: var(--whiz-text-primary);
  border-radius: 8px;
  min-height: 44px;
  transition: all 0.2s ease;
}

.whiz-input:focus {
  outline: none;
  border-color: var(--whiz-green);
  box-shadow: 0 0 0 3px rgba(169, 207, 59, 0.25);
  background-color: var(--whiz-surface);
}

.whiz-input option, .whiz-input optgroup {
  background-color: var(--whiz-dark-light);
  color: var(--whiz-text-primary);
}

/* Buttons */
.btn-whiz-primary, .btn-whiz-green {
  background: linear-gradient(135deg, var(--whiz-green) 0%, var(--whiz-green-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s ease-in-out;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(137, 167, 0, 0.2);
}

.btn-whiz-primary:hover, .btn-whiz-green:hover {
  background: linear-gradient(135deg, var(--whiz-green-dark) 0%, var(--whiz-green-hover) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(169, 207, 59, 0.3);
}

.btn-whiz-primary:active, .btn-whiz-green:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(169, 207, 59, 0.2);
}

.btn-whiz-secondary {
  background-color: var(--whiz-surface-border);
  color: var(--whiz-text-primary);
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  border-radius: 6px;
}

.btn-whiz-secondary:hover {
  background-color: var(--whiz-text-muted);
}

/* Mobile Off-canvas Drawer */
.mobile-drawer {
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--whiz-dark-light);
}

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

.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mega Menu Dropdowns (Desktop) */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  background-color: var(--whiz-surface);
  border: 1px solid var(--whiz-border);
  border-radius: 8px;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dynamic Date Box */
.whiz-date-box {
  background-color: var(--whiz-surface);
  border: 1px solid var(--whiz-border);
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.whiz-date-box:hover, .whiz-date-box:focus-within {
  border-color: var(--whiz-green);
  box-shadow: 0 4px 8px rgba(169, 207, 59, 0.15);
  background-color: var(--whiz-surface-border);
}

.whiz-date-native {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

/* Animations */
@keyframes dh-toast-in { from { opacity: 0; transform: translateY(-12px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.dh-toast { animation: dh-toast-in 200ms ease-out both; }

@keyframes dh-modal-in { from { opacity: 0; transform: scale(0.95) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.dh-modal-overlay { opacity: 0; transition: opacity 150ms ease; }
.dh-modal-overlay.dh-modal-open { opacity: 1; }
.dh-modal-overlay.dh-modal-open .dh-modal-card { animation: dh-modal-in 200ms ease-out both; }

@keyframes dh-lightbox-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.dh-lightbox { opacity: 0; transition: opacity 150ms ease; }
.dh-lightbox.dh-lightbox-open { opacity: 1; }
.dh-lightbox.dh-lightbox-open img { animation: dh-lightbox-in 200ms ease-out both; }

@keyframes dh-skeleton { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.dh-skeleton {
  background: linear-gradient(90deg, var(--whiz-surface) 0%, var(--whiz-surface-border) 50%, var(--whiz-surface) 100%);
  background-size: 200% 100%;
  animation: dh-skeleton 1.4s ease-in-out infinite;
  border-radius: 8px;
}

.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .dh-toast, .dh-modal-overlay, .dh-modal-overlay .dh-modal-card,
  .dh-lightbox, .dh-lightbox img, .dh-skeleton, .mobile-drawer, .drawer-backdrop, .nav-dropdown {
    animation: none !important;
    transition: none !important;
  }
}
