/* modules/cegadmin/beallitasok.css */

.cegadmin-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.cegvalaszto-bar {
  background-color: #0f172a;
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cegvalaszto-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.cegvalaszto-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.cegvalaszto-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.search-input-wrap {
  width: 14rem;
}

.ceg-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  outline: none;
}

.ceg-search-input:focus {
  border-color: #f59e0b;
}

.ceg-select-dropdown {
  width: 16rem;
  padding: 0.5rem 0.75rem;
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
}

.header-action-card {
  background-color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header-pretitle {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.header-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.badge-archived {
  display: inline-block;
  background-color: #fee2e2;
  color: #991b1b;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  margin-top: 0.25rem;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.status-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  color: #16a34a;
  background-color: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .two-col-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-card {
  background-color: #ffffff;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}

.card-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.card-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.card-subtitle {
  font-size: 0.75rem;
  color: #64748b;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid-two-equal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .grid-two-equal {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-three-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .grid-three-col {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.grid-four-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .grid-four-col {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
}

.form-input:disabled {
  background-color: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.form-input:focus {
  border-color: #dc2626;
}

.qr-stats-pill {
  padding: 0.5rem 0.75rem;
  background-color: #f1f5f9;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
}

.logo-preview-box {
  width: 100%;
  height: 6rem;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin: 0.75rem 0;
  overflow: hidden;
}

.logo-preview-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.logo-action-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.text-placeholder {
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-copy-small {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.btn-copy-small:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toggle-control-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.toggle-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: #16a34a;
  cursor: pointer;
}

.toggle-checkbox:disabled {
  cursor: not-allowed;
}

.btn-action-primary {
  background-color: #dc2626;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-action-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-action-warning {
  background-color: #f59e0b;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-action-success {
  background-color: #16a34a;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-action-secondary {
  background-color: #64748b;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-action-danger {
  background-color: #b91c1c;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.cegadmin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  text-align: left;
}

.cegadmin-table th {
  background-color: #f8fafc;
  color: #475569;
  padding: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.cegadmin-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

/* Modál stílusok */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-dialog-box {
  background-color: #ffffff;
  border-radius: 1rem;
  width: 100%;
  max-width: 32rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.modal-header-box {
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-box h3 { margin: 0; font-size: 0.875rem; font-weight: 700; }
.modal-close-icon { background: none; border: none; color: #94a3b8; font-size: 1.5rem; cursor: pointer; }
.modal-body-form { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; max-height: 80vh; overflow-y: auto; }
.modal-footer-box { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.75rem; }

.hidden { display: none !important; }