/* DaisyUI Minimal - Only components used in RF Band Explorer */

/* Light theme variables */
:root {
  color-scheme: light;
  --p: 259 94% 51%;
  --pf: 259 94% 41%;
  --pc: 259 96% 91%;
  --s: 314 100% 47%;
  --sf: 314 100% 37%;
  --sc: 314 100% 91%;
  --a: 174 60% 51%;
  --af: 174 60% 41%;
  --ac: 174 60% 11%;
  --n: 214 20% 21%;
  --nf: 212 28% 9%;
  --nc: 220 13% 69%;
  --b1: 0 0% 100%;
  --b2: 0 0% 95%;
  --b3: 180 2% 90%;
  --bc: 215 28% 17%;
  --in: 198 93% 60%;
  --inc: 198 100% 12%;
  --su: 158 64% 52%;
  --suc: 158 100% 10%;
  --wa: 43 96% 56%;
  --wac: 43 100% 11%;
  --er: 0 91% 71%;
  --erc: 0 100% 14%;
}

/* Dark theme variables */
[data-theme="dark"] {
  color-scheme: dark;
  --p: 259 94% 65%;
  --pf: 259 94% 55%;
  --pc: 259 96% 9%;
  --s: 314 100% 62%;
  --sf: 314 100% 52%;
  --sc: 314 100% 9%;
  --a: 174 60% 65%;
  --af: 174 60% 55%;
  --ac: 174 60% 9%;
  --n: 218 11% 65%;
  --nf: 222 84% 5%;
  --nc: 220 13% 18%;
  --b1: 222 84% 5%;
  --b2: 220 13% 9%;
  --b3: 220 13% 13%;
  --bc: 220 13% 69%;
  --in: 198 93% 60%;
  --inc: 198 100% 12%;
  --su: 158 64% 52%;
  --suc: 158 100% 10%;
  --wa: 43 96% 56%;
  --wac: 43 100% 11%;
  --er: 0 91% 71%;
  --erc: 0 100% 14%;
}

/* Base colors */
.bg-base-100 { background-color: hsl(var(--b1) / 1); }
.bg-base-200 { background-color: hsl(var(--b2) / 1); }
.text-primary { color: hsl(var(--p) / 1); }
.text-secondary { color: hsl(var(--s) / 1); }
.text-accent { color: hsl(var(--a) / 1); }

/* Hero component */
.hero {
  display: grid;
  width: 100%;
  place-items: center;
  background-size: cover;
  background-position: center;
}
.hero-content {
  display: flex;
  width: 100%;
  max-width: 80rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Button component */
.btn {
  display: inline-flex;
  height: 3rem;
  min-height: 3rem;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1em;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration-line: none;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
  border-color: hsl(var(--n) / var(--tw-border-opacity, 1));
  background-color: hsl(var(--n) / var(--tw-bg-opacity, 1));
  color: hsl(var(--nc) / var(--tw-text-opacity, 1));
  outline-color: hsl(var(--n) / 1);
}
.btn-primary {
  border-color: hsl(var(--p) / var(--tw-border-opacity, 1));
  background-color: hsl(var(--p) / var(--tw-bg-opacity, 1));
  color: hsl(var(--pc) / var(--tw-text-opacity, 1));
  outline-color: hsl(var(--p) / 1);
}
.btn-outline {
  border-color: currentColor;
  background-color: transparent;
  color: currentColor;
}
.btn-ghost {
  border: 1px solid transparent;
  background-color: transparent;
  color: currentColor;
}
.btn-circle {
  height: 3rem;
  width: 3rem;
  border-radius: 9999px;
  padding: 0;
}
.btn-sm {
  height: 2rem;
  min-height: 2rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.75rem;
}
.btn-lg {
  height: 4rem;
  min-height: 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 1.125rem;
}

/* Card component */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background-color: hsl(var(--b1) / var(--tw-bg-opacity, 1));
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}
.card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 2rem;
  gap: 0.5rem;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}

/* Tabs component */
.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}
.tabs-boxed {
  height: 3rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--b2) / var(--tw-bg-opacity, 1));
  padding: 0.25rem;
}
.tab {
  position: relative;
  display: inline-flex;
  height: 2rem;
  cursor: pointer;
  user-select: none;
  appearance: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-decoration-line: none;
  border-radius: 0.375rem;
  padding-left: 1rem;
  padding-right: 1rem;
  transition-property: color, background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}
.tab-active {
  background-color: hsl(var(--b1) / var(--tw-bg-opacity, 1));
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}

/* Stats component */
.stats {
  display: inline-flex;
  overflow: hidden;
  border-radius: 0.5rem;
}
.stats-horizontal {
  flex-direction: row;
}
.stats-vertical {
  flex-direction: column;
}
.stat {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem 1.5rem;
  background-color: hsl(var(--b1) / var(--tw-bg-opacity, 1));
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}
.stat-title {
  color: hsl(var(--bc) / 0.6);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}
.stat-value {
  font-size: 2rem;
  line-height: 2rem;
  font-weight: 800;
}

/* Progress component */
.progress {
  position: relative;
  width: 100%;
  appearance: none;
  overflow: hidden;
  border-radius: 1rem;
  background-color: hsl(var(--bc) / 0.2);
  height: 0.5rem;
}
.progress-primary::-webkit-progress-value {
  background-color: hsl(var(--p) / var(--tw-bg-opacity, 1));
}
.progress-primary::-moz-progress-bar {
  background-color: hsl(var(--p) / var(--tw-bg-opacity, 1));
}

/* Modal component */
.modal {
  pointer-events: none;
  position: fixed;
  inset: 0;
  margin: 0;
  display: grid;
  height: 100%;
  max-height: none;
  width: 100%;
  max-width: none;
  justify-items: center;
  padding: 0;
  opacity: 0;
  overscroll-behavior: contain;
  z-index: 999;
  background-color: transparent;
  color: inherit;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
  transition-property: transform, opacity, visibility;
  overflow-y: hidden;
}
.modal:not(dialog:not(.modal-open)),
.modal::backdrop {
  background-color: hsl(var(--b1) / 0.6);
  animation: modal-pop 0.2s ease-out;
}
.modal-open,
.modal:target,
.modal-toggle:checked + .modal,
.modal[open] {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.modal-box {
  max-height: calc(100vh - 5em);
  grid-column-start: 1;
  grid-row-start: 1;
  width: 91.666667%;
  max-width: 32rem;
  scale: 0.9;
  transform-origin: center;
  border-radius: 1rem;
  background-color: hsl(var(--b1) / var(--tw-bg-opacity, 1));
  padding: 1.5rem;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Alert component */
.alert {
  display: grid;
  width: 100%;
  grid-auto-flow: row;
  align-content: flex-start;
  align-items: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  border-radius: 1rem;
  border-width: 1px;
  border-color: transparent;
  padding: 1rem;
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}
.alert-success {
  border-color: hsl(var(--su) / 0.2);
  background-color: hsl(var(--su) / 0.2);
  color: hsl(var(--suc) / var(--tw-text-opacity, 1));
}

/* Toast component */
.toast {
  position: fixed;
  display: flex;
  min-width: fit-content;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem;
  z-index: 1000;
}
.toast-top {
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
}
.toast-center {
  justify-content: center;
}

/* Toggle component */
.toggle {
  flex-shrink: 0;
  height: 1.5rem;
  width: 3rem;
  cursor: pointer;
  appearance: none;
  border-radius: 1rem;
  border-width: 1px;
  border-color: hsl(var(--bc) / var(--tw-border-opacity, 0.2));
  background-color: hsl(var(--bc) / var(--tw-bg-opacity, 0.5));
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle:checked {
  background-color: hsl(var(--bc) / var(--tw-bg-opacity, 1));
  background-image: none;
  animation: checkmark var(--animation-input, 0.2s) ease-out;
}
.toggle-primary:checked {
  border-color: hsl(var(--p) / var(--tw-border-opacity, 1));
  background-color: hsl(var(--p) / var(--tw-bg-opacity, 1));
}

/* Form control */
.form-control {
  display: flex;
  flex-direction: column;
}
.label {
  display: flex;
  user-select: none;
  align-items: center;
  justify-content: space-between;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.label-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}
.cursor-pointer {
  cursor: pointer;
}

/* Utility classes */
.hidden { display: none; }
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-box { border-radius: 1rem; }

/* Responsive utilities */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Animations */
@keyframes modal-pop {
  0% { opacity: 0; transform: scale(0.9); }
}
@keyframes checkmark {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}/* 
Dark theme specific component adjustments */
[data-theme="dark"] .btn {
  border-color: hsl(var(--n) / var(--tw-border-opacity, 1));
  background-color: hsl(var(--n) / var(--tw-bg-opacity, 1));
  color: hsl(var(--nc) / var(--tw-text-opacity, 1));
}

[data-theme="dark"] .btn-outline {
  border-color: currentColor;
  background-color: transparent;
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}

[data-theme="dark"] .btn-ghost {
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}

[data-theme="dark"] .card {
  background-color: hsl(var(--b1) / var(--tw-bg-opacity, 1));
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}

[data-theme="dark"] .modal-box {
  background-color: hsl(var(--b1) / var(--tw-bg-opacity, 1));
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}

[data-theme="dark"] .alert {
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}

[data-theme="dark"] .stat {
  background-color: hsl(var(--b1) / var(--tw-bg-opacity, 1));
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}

[data-theme="dark"] .tabs-boxed {
  background-color: hsl(var(--b2) / var(--tw-bg-opacity, 1));
}

[data-theme="dark"] .tab-active {
  background-color: hsl(var(--b1) / var(--tw-bg-opacity, 1));
  color: hsl(var(--bc) / var(--tw-text-opacity, 1));
}

[data-theme="dark"] .progress {
  background-color: hsl(var(--bc) / 0.2);
}

/* Ensure proper text colors in dark mode */
[data-theme="dark"] body {
  background-color: hsl(var(--b2) / 1);
  color: hsl(var(--bc) / 1);
}

[data-theme="dark"] .text-primary {
  color: hsl(var(--p) / 1);
}

[data-theme="dark"] .text-secondary {
  color: hsl(var(--s) / 1);
}

[data-theme="dark"] .text-accent {
  color: hsl(var(--a) / 1);
}