/* Alap stílusok */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    background-color: #346ed1;
 }
 .pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination span.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination span:not(.current) {
    color: #999;
}
 /* Main Content */
 .main-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex: 1;
 }
 
 .container {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 }
 
 h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
 }
 
 h2 {
    font-size: 24px;
    margin-bottom: 10px;
 }
 
 label {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
 }
 
 input {
    width: 97%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
 }
 
 input[type="password"] {
    font-family: "Courier New", monospace;
 }
 
 button {
    background-color: #34495e;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;  /* Kéz ikon megjelenítése a gomb fölött */
    transition: all 0.3s ease;  /* Átmeneti animáció (opcionális) */
 }
 #bigButton:hover{
 transform:scale(1.01);
 transition: all 0.3s ease;  /* Átmeneti animáció (opcionális) */
 
 }
 
 button:hover {
    background-color: #2980b9;  /* Hover háttérszín */
    transform: scale(1.1);  /* Gomb felnagyítása hover-re */
    transition: all 0.3s ease;  /* Átmeneti animáció (opcionális) */
 
 }
 
 .error {
    color: red;
    font-size: 16px;
    margin-top: 10px;
 }
 
 table {
    width: 100%;
    margin: 10px auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    table-layout: auto;
 }
 
 
 td, th {
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
 }
 
 th {
    background-color: #494949;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
 }
 
 tr:nth-child(even) {
    background-color: #f8f9fa;
 }
 
 tr:hover {
    background-color: #f1f1f1;
 }
 
 
 
 
 /* A modális ablak alap stílusai */
 .modal {
    display: none; /* Alapértelmezésben rejtve */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Átlátszó háttér */
    justify-content: center;
    align-items: center;
 }
 
 .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Fontos, hogy mindig előtérben legyen */
 }
 
 
 .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
 }
 
 .close:hover,
 .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
 }
 
 .modal-body {
    margin-top: 10px;
    font-size: 16px;
 }
 
 .modal-title{
    text-align: center;
 }
 
 label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: inline-block;
    transition: color 0.3s ease-in-out;
 }
 
 
 select {
    width: 97%;
    padding: 12px 20px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s, background-color 0.3s;
    box-sizing: border-box; /* hogy a paddingot a teljes szélességbe bele számolja */
 }
 
 select:focus {
    outline: none;
    border-color: #3498db;
    background-color: #fff;
 }
 
 
 select option {
    padding: 10px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    border: none;
 }
 
 select option:hover {
    background-color: #3498db;
    color: #fff;
 }
 
 
 select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
 }
 
 select::after {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #3498db;
    pointer-events: none;
 }
 
 .modal form {
    z-index: 1000;
    font-family: 'Arial', sans-serif;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 }
 /* Hamburger menü gomb */
 .hamburger-menu {
    position: absolute; /* Az abszolút pozícionálás szükséges a main-content-en belüli elhelyezéshez */
    top: 20px;
    left: 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    z-index: 1000; /* Fontos, hogy a sidebar fölött maradjon */
 }
 
 
 /* Alapértelmezett sidebar elrejtés */
 .sidebar {
   width: 250px;
   background-color: #2c3e50;
   color: white;
   height: 100vh;
   padding-top: 20px;
   position: fixed;
   top: 0;
   left: -250px; /* Elrejtés alaphelyzetben */
   z-index: 999;
   transition: left 0.3s ease; /* Animáció */
 }
 
 .sidebar.show {
   left: 0; /* Sidebar megjelenítése */
 }
 
 .sidebar h2 {
   text-align: center;
   margin-bottom: 30px;
 }
 
 .sidebar ul {
   list-style: none;
   padding: 0;
 }
 
 .sidebar ul li {
   padding: 15px 20px;
   cursor: pointer;
 }
 
 .sidebar ul li:hover,
 .sidebar ul li.active {
   background-color: #34495e;
   font-size: 1.05em; /* A szöveg méretének növelése */
   transition: font-size 0.3s ease; /* Zökkenőmentes animáció a szöveg méretének változásához */
 
 }
 
 .sidebar ul li a {
   color: white;
   text-decoration: none;
 }
 
 /* Sidebar záró gomb */
 .close-sidebar {
   position: absolute;
   top: 10px;
   right: 10px;
   background: none;
   color: white;
   border: none;
   font-size: 14px;
   cursor: pointer;
 }
 
 /* Hamburger gomb elrejtése, amikor a sidebar nyitva van */
 .sidebar.show ~ .hamburger-menu {
   display: none;
 }
 
/* Reszponzív stílus kisebb képernyőkre */
@media (max-width: 768px) {
    table th, table td {
        font-size: 12px;
        padding: 8px;
    }
}

/* Index.php és vehicle.php reszponzív stílusok */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .main-content {
        padding: 5px;
    }

    .container {
        padding: 5px;
        border-radius: 5px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    input, select {
        font-size: 14px;
        padding: 8px;
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    /* Container módosítása */
    .container {
        width: 95%;
        margin: 0 auto;
        padding: 10px;
    }

    /* Keresőmező stílusa */
    #searchBox input[type="text"] {
        width: 100%;
        max-width: 250px;
        margin: 5px 0;
    }

    /* Táblázat átalakítása vertikális megjelenítéshez */
    .container .data-table,
    .container .data-table tbody,
    .container .data-table tr,
    .container .data-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* Fejléc elrejtése */
    .container .data-table thead {
        display: none;
    }

    .container .data-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        position: relative;
        padding-bottom: 80px;
        min-height: auto;
    }

    .container .data-table td {
        text-align: left;
        padding: 8px;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #eee;
        min-height: 30px;
    }

    .container .data-table td:empty:after {
        content: "Nincs megadva";
        color: #999;
        font-style: italic;
    }

    .container .data-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 8px;
        width: 45%;
        font-weight: bold;
    }

    /* ID hivatkozás stílusa */
    .container .data-table td a {
        color: #2980b9;
        text-decoration: none;
        font-weight: bold;
        padding: 5px;
        display: inline-block;
    }

    .container .data-table td a:hover {
        text-decoration: underline;
    }

    /* Funkciók felirat és gombok pozicionálása */
    .container .data-table td[data-label="Funkciók"] {
        padding: 8px;
        text-align: center;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #f8f9fa;
        border-radius: 0 0 8px 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
        min-height: 60px;
    }

    .container .data-table td[data-label="Funkciók"]:before {
        display: none;
    }

    .container .data-table td[data-label="Funkciók"] button,
    .container .data-table td[data-label="Funkciók"] form {
        flex: 0 1 auto;
        margin: 2px;
    }

    .container .data-table td[data-label="Funkciók"] form {
        display: inline-flex;
    }

    /* Funkció gombok optimalizálása */
    .container .data-table td[data-label="Funkciók"] button {
        font-size: 0.9em;
        padding: 6px 10px;
        min-width: auto;
        white-space: nowrap;
    }

    .container .data-table td[data-label="Funkciók"] button:hover {
        transform: scale(1.05);
    }
}

/* Extra kis képernyőkre */
@media screen and (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .main-content {
        padding: 2px;
    }

    .container {
        padding: 2px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    input, select {
        font-size: 13px;
        padding: 6px;
    }

    button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .modal-content {
        width: 98%;
        padding: 10px;
    }

    .container {
        width: 98%;
        padding: 5px;
    }

    .container .data-table td {
        font-size: 13px;
        padding: 6px;
        padding-left: 45%;
    }

    .container .data-table td:before {
        font-size: 12px;
    }

    .container .data-table button,
    .searchfilter-container button {
        font-size: 0.8em;
        padding: 4px 8px;
        min-width: 60px;
    }

    /* Még kisebb képernyőkön a funkciók gomb konténer magasságának növelése */
    .container .data-table tr {
        padding-bottom: 100px;
    }

    .container .data-table td[data-label="Funkciók"] {
        padding: 5px;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 3px;
        min-height: 90px;
    }

    .container .data-table td[data-label="Funkciók"] button {
        font-size: 0.8em;
        padding: 5px 8px;
        min-width: auto;
        margin: 2px;
    }

    .container .data-table td[data-label="Funkciók"] i {
        font-size: 1.1em;
    }

    .searchfilter-container button {
        font-size: 0.85em;
        padding: 6px 12px;
    }
}

/* Keresés és szűrés konténer gombjai */
.searchfilter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.searchfilter-container button {
    flex: 0 0 auto;
    min-width: fit-content;
    transition: background-color 0.3s ease;
}

.searchfilter-container button:hover {
    background-color: #2980b9;
    transform: none !important;
}

.searchfilter-container button.active {
    background-color: #2980b9;
    transform: none !important;
}

/* Keresőmező stílusa */
#searchBox {
    display: none;
    width: 100%;
    max-width: 250px;
    margin: 5px 0;
}

#searchBox.show {
    display: block;
}

#searchBox input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .searchfilter-container button {
        font-size: 0.9em;
        padding: 8px 15px;
    }
}

@media screen and (max-width: 480px) {
    .searchfilter-container button {
        font-size: 0.85em;
        padding: 6px 12px;
    }
}
 
 