/* NAVIGÁCIÓS GOMBOK */
.main-nav {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 12px 24px;
  border: 2px solid #3b82f6;
  background: white;
  color: #3b82f6;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95em;
  position: relative;
  overflow: hidden;
}

.nav-btn.active {
  background: #3b82f6 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  border-color: #3b82f6;
}

.nav-btn:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-btn.active:hover {
  background: #2563eb !important;
  color: white !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* MODERN FORM CARD STÍLUSOK */

.modern-form-header {
  margin-bottom: 25px;
  text-align: center;
}

.modern-form-header h3 {
  color: #2d3748;
  font-size: 1.6em;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modern-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}


.modern-input-container {
  position: relative;
}

.modern-input-container.price::before {
  content: '$';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  font-weight: bold;
  font-size: 1.1em;
  z-index: 2;
}

.modern-input {
  width: 100%;
  padding: 14px 15px 14px 40px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
  box-sizing: border-box;
  background: #f8fafc;
  color: #2d3748;
}

.modern-input:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.modern-input::placeholder {
  color: #a0aec0;
}

/* Model kereső specifikus */
.model-search-container.modern {
  position: relative;
}

.model-dropdown.modern {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-top: 5px;
}

.model-option.modern {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f7fafc;
  transition: all 0.2s;
  color: #4a5568;
}

.model-option.modern:hover {
  background: #667eea;
  color: white;
}

.model-option.modern:last-child {
  border-bottom: none;
}

/* Modern tuning container */
.modern-tuning-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.modern-tuning-option {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-weight: 500;
  color: #4a5568;
  user-select: none;
}

.modern-tuning-option:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.modern-tuning-option.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Modern kép feltöltés */
.modern-image-section {
  border-radius: 16px;
  padding: 25px;
}

.modern-image-section h4 {
  color: #1654c0;
  margin-bottom: 15px;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  gap: 10px;
}


.modern-image-upload-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modern-image-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modern-image-file-name {
  color: #4a5568;
  font-size: 0.95em;
  font-weight: 500;
  padding: 8px 12px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.modern-image-preview {
  margin-top: 15px;
  text-align: center;
}

.modern-image-preview img {
  max-width: 200px;
  max-height: 150px;
}


/* Modern gombok */
.modern-form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.modern-btn-primary {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
  min-width: 160px;
}

.modern-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.modern-btn-secondary {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%) !important;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
  min-width: 160px;
}

.modern-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
}




.modern-btn-kick {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%) !important;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(237, 137, 54, 0.3);
}

.modern-btn-kick:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(237, 137, 54, 0.4);
}

.modern-btn-refresh {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  min-width: 160px;
}

.modern-btn-refresh:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Művelet gombok */
.action-cell {
  text-align: center;
}

.modern-action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

/* MODERN TÁBLÁZAT STÍLUSOK */



.modern-car-image {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
  display: block;
  margin: 0 auto;
}

.modern-car-image:hover {
  transform: scale(1.1);
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Nincs kép placeholder */
.no-image-placeholder {
  width: 70px;
  height: 50px;
  background: #f8fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  font-size: 0.7em;
  text-align: center;
  line-height: 1.2;
  margin: 0 auto;
  cursor: default;
}

/* Galéria táblázat kép stílusok */
.gallery-table-image {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
  display: block;
  margin: 0 auto;
}

.gallery-table-image:hover {
  transform: scale(1.1);
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gallery-no-image-small {
  width: 120px;
  height: 80px;
  background: #f8fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  font-size: 0.8em;
  text-align: center;
  line-height: 1.2;
  margin: 0 auto;
  cursor: default;
}

/* Státusz badge-ek */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  text-align: center;
  min-width: 80px;
}

.status-available {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.status-sold {
  background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(113, 128, 150, 0.3);
}

/* Ár stílusok */
.price-cell {
  font-weight: 700;
  font-size: 1em;
  text-align: center;
  padding-right: 20px !important;
}

.price-purchase {
  color: #e53e3e;
}

.price-desired {
  color: #ed8936;
}

.price-sale {
  color: #48bb78;
}

.price-keszpenz {
  color: #805ad5 !important;
  font-weight: 700;
  font-size: 0.95em;
}

.price-hidden {
  color: #cbd5e0;
  font-style: italic;
}

/* PP ár stílusok */
.price-cell[style*="color: #805ad5"] {
  font-weight: 700 !important;
  color: #805ad5 !important;
}

/* PP ár input stílus */
.modern-input-container:not(.price)::before {
  content: '🎯';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 1.1em;
  z-index: 2;
}

/* Eladva sor stílus */
.sold-row {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
  opacity: 0.8;
}

.sold-row:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%) !important;
  opacity: 0.9;
}

/* Üres táblázat stílus */
.empty-table-message {
  text-align: center;
  padding: 60px 20px;
  color: #718096;
  font-size: 1.1em;
}

.empty-table-message::before {
  content: '🚗';
  font-size: 3em;
  display: block;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* STATISZTIKA KÁRTYÁK */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-number {
  font-size: 2em;
  font-weight: bold;
  color: #667eea;
  margin-top: 10px;
}

/* TAGOK TÁBLÁZAT */
.modern-tags-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.modern-tags-table th {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  color: white;
  padding: 18px 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-tags-table td {
  padding: 16px 15px;
  border-bottom: 1px solid #f1f5f9;
  color: #4a5568;
  font-weight: 500;
}

/* Kompakt új tag hozzáadás */
.compact-add-tag {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.compact-add-tag input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: #f8fafc;
}

.compact-add-tag button {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.compact-add-tag button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* Kompakt kép feltöltés elrendezés */
.compact-image-upload-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 15px;
}

.compact-image-controls {
  flex: 1;
  min-width: 0;
}

.compact-form-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.compact-form-actions .modern-btn-primary,
.compact-form-actions .modern-btn-secondary {
  padding: 10px 15px;
  font-size: 0.9em;
  min-width: 140px;
  white-space: nowrap;
}

/* ... meglévő stílusok ... */

/* Galéria ár módosítás modal stílusok */
.gallery-edit-modal .edit-modal-content {
  max-width: 500px;
}

.gallery-edit-modal .car-info-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.gallery-edit-modal .car-info-card h4 {
  margin: 0 0 12px 0;
  color: #2d3748;
  font-size: 1.3em;
  font-weight: 700;
}

.gallery-edit-modal .current-price {
  color: #718096;
  font-size: 0.9em;
  margin-bottom: 5px;
}

.gallery-edit-modal .price-input-container {
  position: relative;
  margin-top: 15px;
}

.gallery-edit-modal .price-input-container::before {
  content: '$';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  font-weight: bold;
  font-size: 1.1em;
  z-index: 2;
}

.gallery-edit-modal .price-input-container input {
  width: 100%;
  padding: 15px 15px 15px 40px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  box-sizing: border-box;
  background: #f8fafc;
}

.gallery-edit-modal .price-input-container input:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

/* Kép nem kötelező jelzés */
.image-optional {
  color: #a0aec0;
  font-size: 0.85em;
  margin-top: 5px;
  font-style: italic;
}
/* MODERN TÁBLÁZAT STÍLUSOK - TAGOK */
.modern-tags-table th,
.modern-tags-table td {
  padding: 16px 15px;
  border-bottom: 1px solid #f1f5f9;
  color: #4a5568;
  font-weight: 500;
}

.modern-tags-table th {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  color: white;
  padding: 18px 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Vízszintes vonal eltávolítása az utolsó oszlop után */
.modern-tags-table th:last-child::after,
.modern-tags-table td:last-child::after {
  display: none !important;
}
/* Tuning művelet gombok - EGYFORMA MÉRET */


#tuningTableBody .action-cell {
  padding: 8px 4px !important;
  width: 160px !important;
  text-align: center !important;
}

#tuningTableBody .modern-action-buttons {
  gap: 4px !important;
  justify-content: center !important;
  min-width: unset !important;
  display: flex !important;
  align-items: center !important;
}
/* PP ár input stílus a tuning modal-ban */
.price-input-container.pp-price::before {
  content: '🎯';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #805ad5;
  font-weight: bold;
  font-size: 1.1em;
  z-index: 2;
}

.price-input-container.pp-price input {
  padding-left: 45px !important;
}

/* $ ár input stílus (meglévő) */
.price-input-container.price::before {
  content: '$';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  font-weight: bold;
  font-size: 1.1em;
  z-index: 2;
}

.price-input-container.price input {
  padding-left: 40px !important;
}
/* Nagyobb telefonszám stílusok */
.phone-number-large {
  font-size: 1.1em !important;
  font-weight: 700 !important;
  color: #4299e1 !important;
  font-family: monospace !important;
  margin-top: 6px !important;
  letter-spacing: 0.5px !important;
}
/* TAG ADMIN STÍLUSOK */
.tag-admin-form {
  background: white;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
}

.password-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.password-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.password-option:hover {
  border-color: #667eea;
  background: #f8fafc;
}

.password-option input[type="radio"] {
  margin: 0;
}

.custom-password-input {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
/* TAG ADMIN STÍLUSOK */
.password-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.password-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  background: #f8fafc;
}

.password-option:hover {
  border-color: #667eea;
  background: white;
  transform: translateY(-1px);
}

.password-option input[type="radio"] {
  margin: 0;
}

.custom-password-input {
  margin-top: 10px;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

/* Tag Admin gomb elrejtése nem adminok elől */
.main-nav .nav-btn[onclick="showPage('tagAdmin')"] {
  display: none;
}

.logged-in.admin .main-nav .nav-btn[onclick="showPage('tagAdmin')"] {
  display: inline-block;
}
/* INPUT HINT STÍLUSOK */
.input-hint {
    font-size: 0.8em;
    color: #718096;
    margin-top: 5px;
    font-style: italic;
}

/* TAG ADMIN KÁRTYÁK STÍLUSAI */
.tag-admin-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.tag-admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.tag-admin-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.tag-admin-info {
    flex: 1;
}

.tag-admin-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.tag-admin-rank {
    color: #4a5568;
    font-weight: 600;
    font-size: 1em;
}

.tag-admin-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Hozzáférési szint stílusok */
.role-admin {
    color: #d69e2e;
    font-weight: 700;
}

.role-user {
    color: #4299e1;
    font-weight: 600;
}
/* Jelszó megjelenítés stílusok */
.password-display {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.password-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #e53e3e;
    font-family: monospace;
    letter-spacing: 2px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    border: 1px dashed #e53e3e;
    display: inline-block;
    min-width: 200px;
}

.warning-box {
    background: #fffbeb;
    border: 2px solid #f6e05e;
    border-radius: 10px;
    padding: 12px;
    margin: 15px 0;
    text-align: center;
}

.user-info-grid {
    background: #f7fafc;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
/* Jelszó váltás gomb stílus */
.badge-edit-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
    width: 100%;
    margin-bottom: 8px;
}

.badge-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}
/* TAG ADMIN KÁRTYA STÍLUSOK - MINT A KITŰZŐK */
.tag-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tag-admin-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.tag-admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.tag-admin-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    flex: 1;
}

.tag-admin-info {
    flex: 1;
}

.tag-admin-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
    word-break: break-word;
}

.tag-admin-rank {
    color: #4a5568;
    font-weight: 600;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-phone {
    color: #4299e1;
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: 500;
}

.tag-admin-date {
    color: #718096;
    font-size: 0.8em;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-admin-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Reszponzív design */
@media (max-width: 768px) {
    .tag-admin-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tag-admin-card {
        padding: 20px;
    }
}
/* Eladás típus választó stílusok */
.sale-type-selector {
  display: flex;
  gap: 15px;
  margin: 15px 0;
}

.sale-type-option input[type="radio"] {
  display: none;
}

.sale-type-card {
  padding: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.sale-type-option input[type="radio"]:checked + .sale-type-card {
  border-color: #667eea;
  background: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.sale-type-card.kp {
  border-color: #48bb78;
  background: #f0fff4;
}

.sale-type-card.normal {
  border-color: #ed8936;
  background: #fffaf0;
}

.sale-type-option input[type="radio"]:checked + .sale-type-card.kp {
  border-color: #48bb78;
  background: #c6f6d5;
}

.sale-type-option input[type="radio"]:checked + .sale-type-card.normal {
  border-color: #ed8936;
  background: #fed7d7;
}
/* MODERN MODAL DESIGN - JAVÍTOTT, GÖRHETŐ */
.edit-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  overflow-y: auto; /* Görgetés engedélyezése a modal hátterén */
}

.edit-modal.active {
  display: block !important;
}

.edit-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  margin: 5vh auto;
  border-radius: 20px;
  width: 95%;
  max-width: 480px;
  max-height: 90vh; /* Maximum magasság */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden; /* A content belsejében legyen görgetés */
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 10001;
  display: flex;
  flex-direction: column;
}

/* Modal body görhetővé tétele */
.edit-modal-body {
  padding: 30px;
  overflow-y: auto; /* Görgetés engedélyezése */
  flex: 1; /* Kitölti a rendelkezésre álló helyet */
  max-height: calc(90vh - 140px); /* Kiszámoljuk a max magasságot (header + footer) */
}

/* Nagyobb modalokhoz (pl. tag admin) */
.edit-modal-content.large {
  max-width: 900px;
  max-height: 95vh;
}

.edit-modal-content.large .edit-modal-body {
  max-height: calc(95vh - 140px);
}

/* Reszponzív beállítások */
@media (max-height: 700px) {
  .edit-modal-content {
    margin: 2vh auto;
    max-height: 96vh;
  }
  
  .edit-modal-body {
    max-height: calc(96vh - 140px);
    padding: 20px;
  }
}

@media (max-height: 500px) {
  .edit-modal-content {
    margin: 1vh auto;
  }
  
  .edit-modal-body {
    padding: 15px;
  }
}

/* Görgetősáv stílusok */
.edit-modal-body::-webkit-scrollbar {
  width: 6px;
}

.edit-modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.edit-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.edit-modal-body::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}
