/* components.css */
/* ====== CONTAINERS ====== */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

@media (max-width: 768px) {
  .page-container {
    padding: 20px 15px;
  }

  .form-row {
      flex-direction: column;
  }

  .form-group.half,
  .form-group.two-thirds,
  .form-group.one-third {
      width: 100%;
  }
}

/* ====== CARDS & PANELS ====== */
.content-card {
  background-color: #171717;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
}

/* ====== NOTICES & ALERTS ====== */
.notice {
  background-color: #252525;
  border-left: 4px solid #666;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  border-radius: 4px;
  color: #ccc;
}

.notice.error {
  background-color: rgba(139, 0, 0, 0.2);
  border-left-color: darkred;
}

.notice.success {
  background-color: rgba(0, 100, 0, 0.2);
  border-left: 4px solid #006400;
}

/* ====== BUTTONS ====== */
.button {
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
  text-align: center;
}
.button-small {
  padding: 8px 16px;
}
.button .material-symbols-outlined {
    vertical-align: middle;
}

.button-primary {
  background-color: var(--color-hover);
  color: black;
}

.button-primary:hover {
  background-color: #444;
  color: white;
}

.button-primary:disabled {
  background-color: #333;
  cursor: not-allowed;
}

.button-secondary {
  background-color: #333;
  color: #ccc;
}

.button-secondary:hover {
  background-color: #444;
}

/* ====== FORM ELEMENTS ====== */
.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
}

.form-group.half {
  flex-basis: 50%;
}

.form-group.two-thirds {
  flex-basis: 66.66%;
}

.form-group.one-third {
  flex-basis: 33.33%;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #ccc;
}
.form-group-light .form-label {
  color: black;
}
.form-group-light .form-input {
  color: black;
  background-color: white;
}

.form-input {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #444;
  background-color: #1c1c1c;
  color: white;
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-hover);
}

.form-input.invalid {
  border-color: #e48484;
}

.form-error {
  color: #e48484;
  font-size: 12px;
  margin-top: 5px;
}

/* ====== SECTION TITLES ====== */
.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  color: white;
}
@media (max-width: 480px) {
  .page-title {
    font-size: 20px;
  }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-30px);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.fade-out {
  animation: fadeOut 0.3s forwards;
}

/* ====== RESPONSIVE ADJUSTMENTS ====== */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .form-group.half,
  .form-group.two-thirds,
  .form-group.one-third {
    width: 100%;
  }
}

.breadcrumbs {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 8px 0;
  color: #aaa;
  font-size: 14px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--color-hover);
}

.breadcrumb-divider {
  margin: 0 8px;
  color: #666;
}

.breadcrumb-current {
  color: #fff;
  font-weight: 500;
}

@media (max-width: 480px) {
  .breadcrumbs {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .breadcrumb-divider {
    margin: 0 5px;
  }
}

label.slider {
  --c: #547980; /* slider color */
  --g: round(.3em,1px);  /* the gap */
  --l: round(.2em,1px);  /* line thickness*/
  --s: round(1.3em,1px); /* thumb size*/
  --t: round(.8em,1px);  /* tooltip tail size */
  --r: round(.8em,1px);  /* tooltip radius */

  timeline-scope: --thumb-view;
  position: relative; /* No, It's not useless so don't remove it (or remove it and see what happens) */
  font-size: 12px;
}

label.slider input {
  width: 100%;
  height: var(--s); /* needed for Firefox*/
  --_c: color-mix(in srgb, var(--c), #000 var(--p,0%));
  appearance :none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  font-size: inherit;
}
label.slider input:focus-visible,
label.slider input:hover{
  --p: 25%;
}
label.slider input:active,
label.slider input:focus-visible{
  --_b: var(--s)
}
/* chromium */
label.slider input[type="range" i]::-webkit-slider-thumb{
  height: var(--s);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 var(--_b,var(--l)) inset var(--_c);
  border-image: linear-gradient(90deg,var(--_c) 50%,#ababab 0) 0 1/calc(50% - var(--l)/2) 100vw/0 calc(100vw + var(--g));
  -webkit-appearance: none;
  appearance: none;
  transition: .3s;
  anchor-name: --thumb;
  view-timeline: --thumb-view inline;
}
/* Firefox */
label.slider input[type="range"]::-moz-range-thumb {
  height: var(--s);
  width: var(--s);
  background: none;
  border-radius: 50%;
  box-shadow: 0 0 0 var(--_b,var(--l)) inset var(--_c);
  border-image: linear-gradient(90deg,var(--_c) 50%,#ababab 0) 0 1/calc(50% - var(--l)/2) 100vw/0 calc(100vw + var(--g));
  -moz-appearance: none;
  appearance: none;
  transition: .3s;
  anchor-name: --thumb;
  view-timeline: --thumb-view inline;
}
label.slider output {
  position-anchor: --thumb;
  position: absolute;
  position-area: top;
  inset: 0 -4em;
  color: black;
  font-weight: bold;
  font-family: sans-serif;
  text-align: center;
  padding-block: .5em;
  width: 4em;
  border-bottom: var(--t) solid #0000;
  border-radius: var(--r)/var(--r) var(--r) calc(var(--r) + var(--t)) calc(var(--r) + var(--t));
  --_m: 100%/var(--t) var(--t) no-repeat;
  --_g: 100%,#0000 99%,#000 102%;
  mask:
    linear-gradient(#000 0 0) padding-box,
    radial-gradient(100% 100% at 100% var(--_g)) calc(50% + var(--t)/2) var(--_m),
    radial-gradient(100% 100% at 0    var(--_g)) calc(50% - var(--t)/2) var(--_m);
  animation: sliderRange linear both;
  animation-timeline: --thumb-view;
  animation-range: entry 100% exit 0%;
}
label.slider output.bottom {
  position-area: bottom;
  border-top: var(--t) solid #0000;
  border-bottom: none;
  border-radius: var(--r)/calc(var(--r) + var(--t)) calc(var(--r) + var(--t)) var(--r) var(--r);
  --_m: 0%/var(--t) var(--t) no-repeat;
  --_g: 0%,#0000 99%,#000 102%;
}
label.slider output:before {
  content: counter(num);
  counter-reset: num var(--val);
}

@keyframes sliderRange {
  0%   {background: var(--color-hover);--val:var(--max)}
  100% {background: var(--color-hover);--val:var(--min)}
}

@supports not (anchor-name: ---) {
  label.slider output {
    display: none;
  }
}

@property --val {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

.input-group .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  margin-bottom: 0;
}

.input-group-append {
  display: flex;
  margin-left: -1px;
}

.input-group > .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-append button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.input-group .form-control:focus {
  z-index: 3;
  border-color: var(--color-hover);
  outline: 0;
}

.text-muted {
  color: #dddddd;
}