/* style.css */
/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
} */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    
    /* Flexbox beállítások módosítása */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* FONTOS: Felülről indítjuk az oldalt, nem középről */
    
    /* Magasság kezelése a görgetéshez */
    min-height: 100vh; /* Minimum akkora, mint az ablak */
    height: auto;      /* De ha több a tartalom, nőhet tovább (görgetés) */
    
    margin: 0;
    
    /* Térközök, hogy ne tapadjon a szélére */
    padding-top: 50px;    /* Hely a tetején (hogy látszódjon a Vissza gomb) */
    padding-bottom: 50px; /* Hely az alján */
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #666;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Hogy a padding ne növelje a szélességet */
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
}

input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

a {
    color: #007bff;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

a:hover {
    text-decoration: underline;
}

/* Hibaüzenetek és infó üzenetek stílusa */
.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* --- Ezt másold a style.css végére --- */

/* Szélesebb doboz a főoldalnak */
.container.dashboard {
    max-width: 600px; /* Szélesebb, mint a sima belépő ablak */
    text-align: left; /* Balra rendezzük a szöveget */
}

/* Fejléc a dobozon belül */
.header-title {
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

/* Felhasználói adatok táblázata */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.user-table th, 
.user-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.user-table th {
    color: #555;
    width: 150px;
    font-weight: 600;
}

.user-table td {
    color: #333;
    font-weight: 500;
}

/* Piros Kijelentkezés gomb */
.btn-logout {
    display: inline-block;
    padding: 10px 20px;
    background-color: #dc3545; /* Piros szín */
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    text-align: center;
}

.btn-logout:hover {
    background-color: #c82333; /* Sötétebb piros hoverkor */
    text-decoration: none;
}

/* Kék gomb (pl. jelszóváltáshoz) */
.btn-blue {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    margin-right: 10px; /* Távolság a mellette lévő gombtól */
}

.btn-blue:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Jelszó mező konténer */
.password-wrapper {
    position: relative; /* Ez fontos, ehhez képest igazítjuk az ikont */
    width: 100%;
    margin-bottom: 15px;
}

/* Maga a beviteli mező a konténeren belül */
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    margin-bottom: 0; /* A margót most a wrapper kezeli */
    padding-right: 40px; /* Helyet hagyunk az ikonnak, hogy ne írjunk rá */
}

/* A kis szem ikon */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); /* Függőlegesen középre igazítás */
    cursor: pointer;
    font-size: 18px;
    color: #666;
    user-select: none; /* Hogy ne lehessen kijelölni kattintáskor */
}

.toggle-password:hover {
    color: #007bff;
}

/* Galéria rács elrendezés */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 5px;
    background: #fff;
    text-align: center;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover; /* Ez vágja méretre a képet, hogy ne torzuljon */
    border-radius: 4px;
    display: block;
}

.gallery-item small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

/* Kicsi piros törlés gomb a galériában */
.btn-delete-small {
    background-color: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    width: 100%; /* Kitölti a kártya alját */
    margin-top: 5px;
}

.btn-delete-small:hover {
    background-color: #dc3545;
    color: white;
}

/* Checkbox stílus a kártyákon */
.checkbox-wrapper {
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: left;
}

.checkbox-wrapper label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex; /* Hogy a checkbox és a szöveg egy vonalban legyen */
    align-items: center;
    margin: 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    margin-bottom: 0; /* Felülírjuk a korábbi input margin-t */
    cursor: pointer;
}

/* Ha be van jelölve, legyen halvány piros a kártya széle (opcionális vizuális extra) */
.gallery-item:has(input:checked) {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* Az alsó gombok sávja */
/* Az alsó gombok sávja - KÖZÉPRE IGAZÍTVA */
.bulk-actions {
    margin-top: 20px;
    padding: 15px;
    background-color: #f1f1f1;
    border-radius: 8px;
    
    display: flex;
    justify-content: center; /* Ez húzza középre a gombokat */
    gap: 20px; /* Ez ad teret a két gomb között */
    align-items: center;
    
    position: sticky; /* Hogy mindig látszódjon görgetéskor */
    bottom: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000; /* Hogy biztosan a képek felett lebegjen */
}

/* --- LIGHTBOX (Képnézegető) STÍLUS --- */

/* A sötét háttér (alapból rejtve van: display: none) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000; /* Legyen mindennek a tetején */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* 90%-os fekete átlátszóság */
    justify-content: center;
    align-items: center;
}

/* Maga a kép */
.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border: 5px solid white;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s; /* Kis animáció megjelenéskor */
}

/* Bezárás gomb (X) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.close-btn:hover { color: #bbb; }

/* Lapozó nyilak (Bal és Jobb) */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3); /* Halvány háttér */
}

/* Jobbra nyíl pozíciója */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Balra nyíl pozíciója */
.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Animáció a kép megjelenéséhez */
@keyframes zoomIn {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

