:root {
  --tw-text-opacity: 1;
}

/* ---- 💎 Egyedi osztályok (ezek adnak “grafikát” is) ---- */

.panel {
  background: #0b0f16;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}

.field {
  width: 100%;
  border-radius: 0.5rem;
  background-color: rgba(0,0,0,0.2);
  border: 1px solid rgb(55 65 81);
  color: rgb(243 244 246);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:focus {
  outline: none;
  border-color: rgb(14 165 233);
  box-shadow:
    0 0 0 1px rgb(14 165 233),
    0 0 6px rgba(91, 10, 168, 0.4);
}

input.field[type="text"]:not(:placeholder-shown),
input.field[type="search"]:not(:placeholder-shown),
input.field[type="email"]:not(:placeholder-shown),
input.field[type="password"]:not(:placeholder-shown),
textarea.field:not(:placeholder-shown) {
  border-color: rgba(14, 165, 233, 0.6);
}

input[type="number"].field {
  text-align: left; /* vagy center, ha jobban tetszik */
}

.muted { color: #9aa4b2; }
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid rgba(75,85,99,0.6);
  background-color: rgba(0,0,0,0.2);
}


/* ---- Sidebar / details tweaks ---- */

/* Remove default marker from <summary> */
summary::-webkit-details-marker {
  display: none;
}

/* Optional: nicer focus */
summary:focus {
  outline: none;
}

/* Optional: smooth open/close */
details > div {
  transition: all 0.2s ease;
}


/* ---- Select egységesítés ---- */

select.field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(0,0,0,0.2);
  color: rgb(243 244 246);
}

select.field:focus,
select.field:focus-visible {
  outline: none !important;
  border-color: rgb(14 165 233) !important;
  box-shadow:
    0 0 0 1px rgb(14 165 233),
    0 0 6px rgba(91, 10, 168, 0.4) !important;
}

select.field:hover {
  border-color: rgba(91, 10, 168, 0.4);
}

select.field:disabled {
  opacity: 1;
  cursor: not-allowed;
  border-color: rgb(55 65 81) !important;
  box-shadow: none !important;
  background-color: rgba(0,0,0,0.2);
  color: rgb(156 163 175);
}

select.field:-moz-focusring {
  outline: none !important;
  color: transparent;
  text-shadow: 0 0 0 rgb(243 244 246);
}

select.field::-moz-focus-inner {
  border: 0;
}

select.field::-ms-expand {
  display: none;
}

select:not(.field) {
  background-color: #111827;
  color: #e5e7eb;
}

select option {
  background-color: #111827;
  color: #e5e7eb;
}

/*új seelct stílus*/
.select-field {
  width: 100%;
  border-radius: 0.5rem;
  background-color: rgba(0,0,0,0.2);
  border: 1px solid rgb(55 65 81);
  color: rgb(243 244 246);
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select-field:focus {
  outline: none;
  border-color: rgb(14 165 233);
  box-shadow:
    0 0 0 1px rgb(14 165 233),
    0 0 6px rgba(91, 10, 168, 0.4);
}

.select-field:hover {
  border-color: rgba(91, 10, 168, 0.4);
}

.select-field:disabled {
  opacity: 1;
  cursor: not-allowed;
  border-color: rgb(55 65 81);
  box-shadow: none;
  color: rgb(156 163 175);
}


/* autocomplete dropdown */
input[list]:not(.field) {
  background-color: #111827;
  color: #e5e7eb;
}

input[list]:not(.field)::placeholder {
  color: #6b7280;
}


/*pagination*/
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  border: 1px solid rgb(55 65 81);
  background-color: rgb(31 41 55);
  color: rgb(243 244 246);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pagination-link:hover {
  background-color: rgb(55 65 81);
}

.pagination-link-active {
  background-color: rgb(14 165 233);
  border-color: rgba(91, 10, 168, 0.75);
  color: #fff;
}

/* ---- Button egységesítés ---- */

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  color: #fff;

  background-color: rgb(14 165 233);
  border: 1px solid rgba(255,255,255,0.08);

  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand:hover {
  background-color: rgb(2 132 199);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.btn-brand:focus {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.6),
    0 0 6px rgba(91, 10, 168, 0.4);
}

.btn-brand:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  color: #fff;

  background-color: rgb(220 38 38);
  border: 1px solid rgba(255,255,255,0.08);

  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-danger:hover {
  background-color: rgb(185 28 28) 
}

/*checkbox */
.checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;

  background-color: rgba(0,0,0,0.3);
  border: 1px solid rgb(75 85 99);

  accent-color: rgb(14 165 233); /* ugyanaz mint gomb */

  cursor: pointer;
}

.checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.4);
}


/* ---- Custom number stepper ---- */

.number-field-wrap {
  position: relative;
}

.number-field-wrap .field {
  padding-right: 5.5rem;
}

.number-stepper {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.number-stepper-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgb(55 65 81);
  background-color: rgba(255,255,255,0.04);
  color: rgb(243 244 246);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.number-stepper-btn:hover {
  background-color: rgba(14, 165, 233, 0.14);
  border-color: rgba(14, 165, 233, 0.45);
}

.number-stepper-btn:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.6), 0 0 6px rgba(14, 165, 233, 0.35);
}

.number-stepper-btn:active {
  background-color: rgba(14, 165, 233, 0.22);
}

/* natív spinner eltüntetése */
input[type="number"].field::-webkit-outer-spin-button,
input[type="number"].field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"].field {
  -moz-appearance: textfield;
}

/* ---- Browsers ---- */
/* ---- Autofill FIX (final) ---- */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(91, 10, 168, 0.12) inset !important;
  -webkit-text-fill-color: #e5e7eb !important;
  border: 1px solid rgb(14 165 233) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Chrome, Safari, Edge */
input[type="number"].field::-webkit-outer-spin-button,
input[type="number"].field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"].field {
  -moz-appearance: textfield;
}