:root {
    --bg: #f6f8fa;
    --card: #ffffff;
    --primary: #0f766e; /* teal-ish */
    --primary-dark: #145e57;
    --muted: #64748b;
    --danger: #dc2626;
    --success: #28a745;
    --radius: 12px;
    --max-width: 960px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color-scheme: light;
}

/* === ALAPOK === */
html, body { height: 100%;margin: 0; }
body {
    margin: 0;
    background: linear-gradient(180deg, #eef2f3 0%, var(--bg) 100%);
    display: flex;
    flex-direction: column; /* Ez teszi egymás alá a kockákat és a láblécet */
    align-items: center;    /* Ez tesz mindent vízszintesen középre */
 //   align-items: flex-start;
    justify-content:  flex-start !important;
    height: auto !important;
 
    padding: 24px;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
  
.container {
    width: 100%;
    max-width: var(--max-width);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 6px 30px rgba(20, 30, 40, 0.08);
    padding: 28px;
    box-sizing: border-box;
}
/* Speciális osztály a teljes szélességhez */
.container.full-width {
    max-width: 100%;
}

.hidden {display:none;}
.link {cursor:pointer; }

/* animátor */
.sync-indicator {
 //   position: fixed;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    /* Alaphelyzet: szürke kör */
    background: #e0e0e0;
    transition: background 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ez hozza létre a belső lyukat, hogy csak a széle látsszon (gyűrű effektus) */
.sync-indicator::after {
    content: "";
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
}
/* Egy kis pulzálás, amikor "mozdul" */
.sync-active {
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
}




#resetDialog {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 20px;
}

#resetDialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5); /* Kellemes sötétítés */
  backdrop-filter: blur(2px);           /* Modern homályosítás */
}

@media (max-width: 640px) {
    .container { padding: 18px; }
}

/* === HEADER ÉS MENÜ === */
header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #e6e9ee;
    padding-bottom: 16px;
}

.logo {
    width: 48px; height: 48px; border-radius: 10px;
    background: url('/favicon-96x96.png') no-repeat center, linear-gradient(135deg, var(--primary), var(--primary-dark));
    background-size: 70px, cover;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 18px;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.18);
}

.header-right { margin-left: auto; position: relative; }

.menu-toggle {
    width: 48px; height: 48px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; padding: 0;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.18);
    transition: transform 0.1s;
}

.menu-toggle:active { transform: scale(0.98); }

.hamburger-icon { width: 24px; height: 24px; position: relative; }
.hamburger-icon span {
    display: block; width: 100%; height: 3px; background-color: white;
    border-radius: 2px; position: absolute; left: 0;
    transition: all 0.2s ease-in-out;
}
.hamburger-icon span:nth-child(1) { top: 4px; }
.hamburger-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-icon span:nth-child(3) { bottom: 3px; }

.dropdown-menu {
    position: absolute; top: 60px; right: 0; min-width: 200px;
    background: var(--card); border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); padding: 8px 0; z-index: 100;
    display: none; opacity: 0; pointer-events: none;
    transform: translateY(-5px); transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.visible { display: block; opacity: 1; pointer-events: auto; transform: translateY(0); }

.dropdown-menu a {
    display: block; padding: 10px 16px; text-decoration: none;
    color: #374151; font-size: 0.95rem; transition: background-color 0.1s;
}
.dropdown-menu a:hover { background-color: #f3f4f6; color: var(--primary); }
.dropdown-menu a:last-child { border-top: 1px solid #e6e9ee; margin-top: 4px; padding-top: 12px; color: var(--danger); }





#currentLangDisplay {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Biztosítsuk, hogy a dropdown jó helyen jelenjen meg */
.header-right .dropdown-menu {
    top: 55px;
    right: 0;
}






.grid { display: grid !important; };
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; /* 32px-es távolság az oszlopok között */ }
/* Asztali nézet: 2 hasáb 768px szélesség felett */
@media (min-width: 768px) {.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Segédosztály az elrejtéshez (ha szükséges a jelszó formhoz) */
.hidden { display: none; }




/* Konténer stílusa */
.custom-checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 35px; /* Hely a saját checkboxunknak */
    cursor: pointer;
    user-select: none;
}

/* Az eredeti checkbox elrejtése */
.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* A saját checkbox "négyzete" */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #e6e9ee;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Hover effekt */
.custom-checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary);
}

/* Ha be van pipálva -> Színes háttér */
.custom-checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* A pipa (ikon) elrejtve alapból */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Pipa megjelenítése, ha be van pipálva */
.custom-checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* A pipa rajzolása (fehér vonalak) */
.custom-checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* A szöveg igazítása */
.checkbox-text {
    font-size: 0.85rem;
    line-height: 22px; /* Hogy egy vonalba essen a négyzettel */
    color: var(--muted);
}

.checkbox-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* === SZÖVEGEK ÉS CÍMEK === */
h1 { font-size: 1.5rem; margin: 0; }
p.lead { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.section-title {
    font-size: 1.25rem; font-weight: 600; color: #1f2937;
    margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #f3f4f6;
}
.small { font-size: 0.9rem; color: var(--muted); }

/* === FORM ELEMEK === */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.field.relative { position: relative; }
label { font-size: 0.85rem; color: var(--muted); display: block; }

input, select, .password {
    width: 100%; padding: 10px 12px; border-radius: 8px;
    border: 1px solid #e6e9ee; font-size: 1rem; box-sizing: border-box;
    outline: none; transition: box-shadow .15s, border-color .15s;
    background: linear-gradient(180deg,#fff,#fbfdff);
    position: relative; z-index: 20;
}
input:focus, select:focus, .password:focus {
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.6);
}

.pw-row { display: flex; align-items: center; gap: 8px; }
.pw-toggle { background: transparent; border: 0; cursor: pointer; color: var(--primary); font-weight: 600; padding: 8px; border-radius: 8px; }

/* === GOMBOK === */
.btn {
    //display: inline-flex; 
    align-items: center; gap: 10px; justify-content: center;
    padding: 10px 14px; border-radius: 10px; border: 0; cursor: pointer;
    font-weight: 600; font-size: 1rem; transition: transform 0.1s, box-shadow 0.1s;
}

.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 8px 20px rgba(15,118,110,0.15); }
.btn-danger { background: var(--danger); color: white; box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2); }
.btn-secondary { background: #e5e7eb; color: #374151; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); }
.btn-icon { background: none; border: none; padding: 4px; margin-left: 8px; color: var(--danger); cursor: pointer; opacity: 0.5; transition: opacity .15s, transform .15s; }
.btn-icon:hover { opacity: 1; transform: scale(1.1); }

/* Speciális Gyerek Gombok */
.btn-child {
    display: inline-flex; margin-right: 8px; margin-bottom: 8px;
    background: #f3f4f6; color: #4b5563; border: 1px solid #d1d5db; padding: 8px 12px;
}
.btn-child:hover { background: #e5e7eb; }
.btn-child[disabled] {
    opacity: 0.6; cursor: not-allowed; background: #e0f2f1 !important;
    color: #0f766e !important; border-color: #99f6e4 !important;
}

/* Egyedi állapotok (idle, sent, done) */
.btn-child-single.btn-idle { background-color: #4CAF50; color: white; border: 1px solid #45a049; }
.btn-child-single.btn-idle:hover:not(:disabled) { background-color: #45a049; }
.btn-child-single.btn-sent, .btn-child-single.btn-done {
    background-color: #a0a0a0; color: #444; border: 1px solid #888; cursor: not-allowed;
}
  .btn-primary{
    background:var(--primary);
    color:white;
    box-shadow: 0 8px 20px rgba(15,118,110,0.15);
  }
  .btn-ghost{
    background:transparent;
    color:var(--primary);
    border:1px solid transparent;
  }

  .btn-bemond {
  background: #8fff85;
  }

.btn-box {
    display: flex;
    gap: 10px;
}



.btn:disabled {
    opacity: 0.45;
}

.btn-warn {
    background: #e67e22;
}




/* === ISKOLA KÁRTYÁK === *
/
.school-card-single {
    text-align: center; padding: 24px; border: 1px solid #ccc; border-radius: 8px;
    margin-bottom: 20px; background-color: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.school-info-centered { font-size: 1.5rem; font-weight: bold; color: var(--primary); margin-bottom: 5px; }
.school-distance-centered { font-size: 1rem; color: var(--muted); margin-bottom: 15px; }
/* === ISKOLA KÁRTYA ÉS TÁVOLSÁG === */
.school-card-single {
    text-align: center;
    padding: 24px;
    border: 1px solid #e6e9ee;
    border-radius: 16px;
    margin-bottom: 24px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.school-info-centered {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Távolság jelző - Kiemelt mobilbarát stílus */
.school-distance-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--muted);
    border: 1px solid #e2e8f0;
}

.school-distance-centered.in-range { color: var(--success); }
.school-distance-centered.out-of-range { color: var(--danger); }




.child-buttons-single { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 350px; margin: 0 auto; }

.child-button-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Ez a rész foglalja le a helyet az üzenetnek */
.child-status-message {
    min-height: 2.5em; /* Fix magasság 1-2 sornyi szövegnek */
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease; /* Finom megjelenés */
    
    /* Alaphelyzetben láthatatlan, de ott van (foglalja a helyet) */
    visibility: hidden;
    opacity: 0;
    border: 1px solid transparent;
}

/* Amikor van üzenet, láthatóvá tesszük */
.child-status-message.visible {
    visibility: visible;
    opacity: 1;
}

/* Színek a státuszokhoz */
.child-status-message.success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.child-status-message.warn { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.child-status-message.error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; font-weight: bold; }






.btn-child-single {
    padding: 10px; border-radius: 6px; background-color: #f0f0f0; color: #333;
    cursor: pointer; text-align: center; border: 1px solid #ddd; transition: background-color 0.2s;
    font-size: 1rem; line-height: 1.2;
}
.btn-child-single .send-text { font-size: 0.85rem; color: var(--primary-dark); margin-top: 2px; font-weight: normal; }





.danger-zone {
    margin-top: 3rem;
    transition: all 0.3s ease;
}

.danger-zone:hover {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Speciális gomb stílus a törléshez */
.btn-danger-outline {
    background-color: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-outline:hover {
    background-color: #dc2626;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}






/* === ÜZENETEK ÉS LOADER === */
.message { padding: 10px 12px; border-radius: 8px; font-size: 0.95rem; margin-bottom: 12px; }
.message.success { background: #ecfdf5; color: #065f46; border: 1px solid #bbf7d0; }
.message.error { background: #fff1f2; color: var(--danger); border: 1px solid #fecaca; border-left: 4px solid var(--danger); }
.message.warn { background: #fff1f2; color: var(--danger); border: 1px solid #fecaca; border-left: 4px solid var(--danger); }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* === MODAL ÉS AUTOCOMPLETE === */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); display: none; justify-content: center;
    align-items: center; z-index: 9999; transition: opacity 0.3s ease;
    opacity: 0; visibility: hidden;
   

}
.modal-overlay.open { opacity: 1; visibility: visible; display: flex !important;}
.modal-content {
    background: var(--card); padding: 24px; border-radius: var(--radius);
    width: 90%; max-width: 400px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative; z-index: 60; transform: translateY(-20px); transition: transform 0.3s ease;
}


.modal-overlay.open .modal-content { transform: translateY(0); }
.modal-close-btn { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); opacity: 0.8; }

.loader {
    border: 4px solid #f3f3f3; border-top: 4px solid var(--primary);
    border-radius: 50%; width: 20px; height: 20px;
    animation: spin 1s linear infinite;  vertical-align: middle;
}

#autocomplete-list {
    position: absolute; z-index: 30; top:38px;  left: 0; right: 0;  display:none;
    border: 1px solid #d1d5db; border-top: none; max-height: 200px;
    overflow-y: auto; background-color: white; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
}
#autocomplete-list div { padding: 10px; cursor: pointer; border-bottom: 1px solid #f3f4f6; }
#autocomplete-list div:hover { background-color: #f0f9ff; }

/* === TOGGLE SWITCH === */
.toggle-container {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px; border-radius: 8px; border: 1px solid #e6e9ee;
    background: #fcfcfc; cursor: pointer; transition: background-color 0.2s;
}
.toggle-container.active { border-color: var(--primary); background: #f0fdfa; }
.toggle-switch { position: relative; display: inline-block; width: 55px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .2s; border-radius: 28px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .2s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* Elavult elemek elrejtése */
.school-card { display: none; }
.school-item {
    padding: 1rem;              /* p-4 */
    border: 1px solid #e5e7eb;  /* border & border-gray-200 */
    border-radius: 0.5rem;      /* rounded-lg */
    margin-bottom: 1rem;        /* mb-4 */
    background-color: #ffffff;  /* bg-white */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}

/* === TAILWIND PÓTLÁS: TÁJÉKOZTATÓ BLOKKOK ÉS FLEX === */

/* Kék info doboz stílusa */
.bg-blue-100 { background-color: #ebf8ff; }
.border-blue-300 { border: 1px solid #90cdf4; }
.text-blue-800 { color: #2c5282; }
.bg-white { background-color: #ffffff; }

/* Elrendezés és árnyék */
.flex { display: flex; }
.items-start { align-items: flex-start; }
.flex-shrink-0 { flex-shrink: 0; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* Szöveg méretek és súlyok */
.text-xxs { font-size: 0.6rem; }
.text-xs { font-size: 0.75rem; }
.text-base { font-size: 1rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-gray-500 { color: #6b7280; }
.text-gray-800 { color: #1f2937; }
.text-red-700 { color: #b91c1c; }

/* Ikon méretezés */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

/* Margók és kerekítés */
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.block { display: block; }
.w-full { width: 100%; }

/* === EGYEDI JAVÍTÁS A TÁJÉKOZTATÓHOZ === */
.answer-content p {
    margin: 4px 0;
    line-height: 1.4;
}

#data-storage-settings {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/* === TÖRLÉS GOMBOK ÉS IKONOK JAVÍTÁSA === */

/* A gombok elrendezése (szöveg balra, kuka jobbra) */
.flex.justify-between {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Függőlegesen középre zár */
}



/* SVG ikonok fix mérete, hogy látszódjanak */
.w-5.h-5 {
    width: 20px !important;
    height: 20px !important;
    display: block;
}

.w-4.h-4 {
    width: 16px !important;
    height: 16px !important;
    display: block;
}

/* Gyerekek listájának elemei */
.bg-gray-50 {
    background-color: #f9fafb;
    margin-bottom: 8px; /* Legyen közte kis hely */
}

.children-list > div {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

/* Iskola kártya margók */
.border-t {
    border-top: 1px solid #e6e9ee;
    padding-top: 1rem;
}

.pt-2 { padding-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
/* === GYEREKEK LISTÁJA EGYMÁS ALÁ === */

.children-list {
    display: flex !important;
    flex-direction: column !important; /* Ez teszi őket egymás alá */
    gap: 8px; /* Távolság a gyerekek között */
    width: 100%;
}

.children-list > div {
    display: flex;
    justify-content: space-between; /* Név balra, kuka jobbra */
    align-items: center;
    width: 100%;
    background-color: #f9fafb; /* bg-gray-50 pótlása */
    padding: 12px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Szöveg méretezése a listában */
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin: 0;
}



 
  form{margin-top:12px;}
 
  label{font-size:0.85rem;color:var(--muted);display:block}
  input[type="email"],
  .password {
    width:100%;
    padding:12px 12px;
    border-radius:10px;
    border:1px solid #e6e9ee;
    font-size:1rem;
    box-sizing:border-box;
    outline:none;
    transition:box-shadow .15s, border-color .15s;
    background:linear-gradient(180deg,#fff,#fbfdff);
  }
  input:focus{ box-shadow: 0 6px 20px rgba(15,118,110,0.08); border-color:rgba(15,118,110,0.6) }

  .actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:6px;
  }

  .muted-link{ color:var(--muted); font-size:0.95rem; text-decoration:none }
  .muted-link:hover{ text-decoration:underline }

  .helper-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:6px }

  .message {
    padding:10px 12px;
    border-radius:8px;
    font-size:0.95rem;
    margin-bottom:12px;
  }
  .message.success{ background:#ecfdf5; color:#065f46; border:1px solid #bbf7d0; }
  .message.error{ background:#fff1f2; color:var(--danger); border:1px solid #fecaca; }

  /* small devices: compact */
  @media (max-width:480px){
    .container{ padding:18px; border-radius:10px; }
    .logo{width:44px;height:44px}
  }
  /* show/hide password toggle */
  .pw-row{ display:flex; align-items:center; gap:8px; }
  .pw-toggle{ background:transparent; border:0; cursor:pointer; color:var(--primary); font-weight:600; padding:8px; border-radius:8px }
  .small{ font-size:0.9rem; color:var(--card) }
  
  
  
  
  
  
  
  /* ========================================= */
/* GYIK / Help Center Stílusok (login.css kiegészítés) */
/* ========================================= */

.help-page-container {
    /* Engedjük meg, hogy a Help oldal szélesebb legyen, mint a szűk login form */
    max-width: 720px; 
}

.help-header {
    /* Az illeszkedés érdekében megtartjuk a header stílusát */
    margin-bottom: 24px;
}

.help-header h1 {
    font-size: 1.5rem; /* Nagyobb címet adunk a Help Centernek */
}

.section-title {
    color: var(--primary); /* Teal szín a fő kategóriáknak */
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.25rem;
    padding-left: 10px; /* Egy kis behúzás */
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Akkordeon stílus a <details> és <summary> elemekhez (A fő designhoz illesztve) */
details {
    border: 1px solid #e6e9ee; /* Enyhe szürke szegély, mint az inputoknál */
    border-radius: var(--radius); /* Lekerekített sarkok (12px) */
    margin-bottom: 12px;
    background-color: #fcfdff; /* Nagyon enyhe háttér a kártya belsejében */
    transition: box-shadow 0.2s;
}

details[open] {
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.08); /* Enyhe árnyék, ha nyitva van */
    border-color: rgba(15, 118, 110, 0.2);
}

summary {
    font-weight: 600;
    padding: 15px 15px;
    cursor: pointer;
    list-style: none; /* Alapértelmezett nyíl eltávolítása */
    position: relative;
    color: #333;
}

/* Egyedi nyíl/ikon a summary-hoz (jobb oldalon) */
summary:after {
    content: '▶'; 
    position: absolute;
    right: 15px;
    font-size: 0.8em;
    color: var(--primary);
    transition: transform 0.2s;
}

details[open] summary:after {
    transform: rotate(90deg); /* 90 fokos fordítás a nyitott állapotban */
}

.answer-content {
    padding: 10px 15px 15px 15px;
    border-top: 1px solid #eee;
    line-height: 1.6;
    color: var(--muted);
}

.answer-content p {
    margin-top: 0;
    margin-bottom: 10px;
}                                                       
.answer-content ul {
    margin-left: 20px;
    padding-left: 0;
}

.help-back-btn {
    margin-top: 20px;
}


////////


  /* --- GOMB ÁLLAPOT STÍLUSOK (Adja hozzá a CSS fájljához) --- */
#list-container {
    padding: 12px;
    max-width:400px; 
    margin-left: auto; /* Bal oldali margó automatikus beállítása */   
    margin-right: auto; /* Jobb oldali margó automatikus beállítása */
}

.row {
   display: flex; /* Flexbox aktiválása */   
    justify-content: space-between; /* Elemek elhelyezése a sor két végén */ 
    background: white;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    margin-left: auto; /* Bal oldali margó automatikus beállítása */   
    margin-right: auto; /* Jobb oldali margó automatikus beállítása */
}

.row-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 11px;
}

.row-sub {
    color: #444;
    font-size: 15px;
    font-weight: bold;
    margin-top: 11px;
    margin-right:10px;
}


.timer {
    font-weight: bold;
    font-size: 18px;
}





.confirm-overlay {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.4);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index: 9999;
}

.confirm-window {
    background:white;
    padding:20px;
    border-radius:12px;
    width:300px;
    text-align:center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.confirm-buttons {
    margin-top:20px;
    display:flex;
    justify-content:space-around;
}

.confirm-buttons button {
    padding:10px 20px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
}

/* Osztályválasztó konténer stílusa */
#classCheckboxContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 10px;
    max-width: 800px;
    margin: 0 auto;
}

/* A rejtett checkbox és a gomb stílusa */
.class-filter-label {
    cursor: pointer;
    user-select: none;
}

.class-filter-label input {
    display: none; /* Elrejtjük a gyári pipát */
}

.class-badge {
    display: block;
    padding: 12px 5px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: #555;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Kijelölt állapot stílusa */
.class-filter-label input:checked + .class-badge {
    background: #28a745;
    border-color: #218838;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Hover effekt (ha egérrel használják) */
.class-filter-label:hover .class-badge {
    border-color: #28a745;
    background: #f8fff9;
}

.filter-controls h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* --- Settings Page Extrák --- */
/* Segéd osztályok */
.flex-1 { flex: 1; }
.section-divider { margin: 2rem 0; border: 0; border-top: 1px solid #eee; }

/* Mentés gomb elrendezése */
.save-action-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.btn-save-main {
    padding: 0.75rem 2.5rem;
    width: 100%; /* Mobilon teljes szélesség */
}

@media (min-width: 768px) {
    .btn-save-main { width: auto; } /* PC-n csak akkora, amekkora kell */
}

/* Admin hozzáadó sor */
.admin-add-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-admin-email {
    flex: 1;
    height: 45px;
    margin: 0 !important;
}

.btn-icon-plus {
    width: 45px;
    height: 45px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* Chrome, Safari, Edge, Opera */
input.no-spinner::-webkit-outer-spin-button,
input.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input.no-spinner[type=number] {
  -moz-appearance: textfield;
}
/* Textarea stílus */
.rt-save-groups {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e6e9ee;
    font-family: inherit;
    resize: vertical;
}

/* Táblázat konténer */
.table-container {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: left;
    text-transform: uppercase;
}


/* A táblázat sorai felett a kurzor mutatóujjra vált */
#admin-list-body tr {
    cursor: pointer;
    transition: background-color 0.2s ease; /* Finom átmenet a színváltáshoz */
}

/* Kiemelés, ha az egér a sor felett van */
#admin-list-body tr:hover {
    background-color: #f1f5f9 !important; /* Világos kékesszürke háttér */
}

/* Opcionális: Aktív kattintáskor egy kicsit sötétebb legyen */
#admin-list-body tr:active {
    background-color: #e2e8f0 !important;
}



.admin-table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
}

// hianyzas oldal
.fa-times:hover {
    color: #e11d48; /* Pirosra vált, ha fölé viszi az egeret */
}
/* A teljes sor konténere */
.absence-row {
    display: flex;
    align-items: center; /* Függőlegesen középre zár */
    justify-content: flex-start; /* Balra zárja az elemeket szorosan egymás után */
    gap: 12px; /* Távolság a dátum és a piros kuka között */
    width: 100%;
    padding: 4px 0;
}

/* A dátumok stílusa */
.absence-dates {
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: center;
}

/* A piros törlés gomb */
.delete-btn-red {
    background: none;
    border: none;
    color: #ef4444; /* Piros szín */
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, color 0.2s;
}

.delete-btn-red:hover {
    color: #b91c1c; /* Sötétebb piros hover esetén */
    transform: scale(1.1); /* Kicsit megnő, ha fölé viszed az egeret */
}

/* Opcionális: A keret stílusa a hiányzás sor körül */
.absence-tag:hover {
    background-color: #f1f5f9;
}

.absence-tag {
    transition: all 0.2s;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    margin-top: 4px;
}