@font-face {
    font-family: OpenSans;
    src: url(OpenSans.ttf);
  }

body {
    background-color: rgba(185, 218, 255, 0.3);
    font-family: OpenSans;
}

.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 8px;
}


.nav-left,
.nav-right {
    display: flex;
    align-items: center; /* 👉 ez igazítja a linkeket középre függőlegesen */
}

.nav-left .logo {
    font-weight: bold;
    font-size: 1.3rem;
    color: #333;
    display: flex;
    align-items: center;
    height: 50px;
    vertical-align: middle;
}

.nav-icon {
    color: #007bff;
    font-size: 1.4rem;
    margin-left: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    position: relative;
}

.nav-icon:hover {
    transform: scale(1.15);
    color: #0056b3;
}

.nav-icon:active {
    transform: scale(0.95);
}

.red {
    color: #c50202;
}

.fa-icon.red:hover {
    color: #960e0e;
    cursor: pointer;
}

.fa-icon {
    font-size: 1.4rem;
    margin-left: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.fa-icon:hover {
    transform: scale(1.15);
    color: #07498f;
    cursor: pointer;
}

.icon-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
}


.container {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 2rem auto;
    overflow-x: auto;
}

h2, h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
}

input, select {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    background: #007bff;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background: #0056b3;
}

.top-btn {
    display: block;
    width: 10rem;
    text-align: center;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
    background: #007bff;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.top-btn:hover {
    background: #0056b3;
    text-decoration: none;
}

a {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.logo-a {
    text-decoration: none;
    margin-top: 0px;
}

/* ✅ ÚJ: táblázat stílus – újrafelhasználható */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    table-layout: auto;
    overflow-x: auto;
}


th, td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    word-wrap: break-word;
}

th {
    background-color: #f0f0f0;
    font-weight: bold;
}

tr:hover {
    background-color: #f9f9f9;
}

/* ✅ TOAST STÍLUSOK */
.toast {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 1rem 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    font-weight: bold;
    color: white;
    min-width: 250px;
    max-width: 90%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin-top: 1.5rem;
}

/* Típusok */
.toast-default { background-color: #333; }
.toast-success { background-color: #28a745; }
.toast-error   { background-color: #dc3545; }
.toast-warning { background-color: #ffc107; color: #212529; }
.toast-info    { background-color: #17a2b8; }

/* Animáció bekapcsolás */
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ✅ Törlés megerősítő popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    animation: slideDown 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal h3 {
    margin-bottom: 1.5rem;
}

.modal button {
    padding: 0.6rem 1.2rem;
    margin: 0 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.modal .modal-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.modal .confirm-btn,
.modal .cancel-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    min-width: 100px;
}

@keyframes slideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.card {
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card label {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}

.card input,
.card select,
.card textarea {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.card label:first-of-type {
    margin-top: 0;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.card small {
    color: #777;
    font-weight: normal;
    font-size: 0.9em;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    background-color: #eaeaea;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 5px;
    margin-right: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}
.btn:hover {
    background-color: #dcdcdc;
    text-decoration: none;
}
.btn-danger {
    background-color: #dc3545;
    color: white;
}
.btn-danger:hover {
    background-color: #c82333;
}

/* ✅ Mobilos reszponzív táblázat – csak a legfontosabb oszlopokat mutatja */
@media (max-width: 768px) {
    /* Elrejtjük a létrehozó és dátum oszlopot */
    .col-creator,
    .col-date,
    td:nth-child(2),
    td:nth-child(3) {
        display: none;
    }

    table {
        font-size: 0.9rem;
    }

    td, th {
        padding: 10px;
    }
}

.btn-primary {
    background: #007bff;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-primary:hover {
    background: #0056b3;
    text-decoration: none;
}

.back-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background-color: #eaeaea;
    color: #007bff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #dcdcdc;
    text-decoration: none;
}

.back-button-db {
    position: absolute;
    top: 4rem;
    left: 1rem;
    background-color: #eaeaea;
    color: #007bff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.back-button-db:hover {
    background-color: #dcdcdc;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

.save-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 16px;
}

.save-btn:hover {
    background-color: #218838;
}

.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* 👉 az input szélességét követi */
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    z-index: 10;
    margin-top: 2px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.autocomplete-container input {
    margin-bottom: 0 !important;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #f0f0f0;
}

.warning-button {
    margin-top: 1rem;
    background-color: #ffc107;
    color: #000;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
  
.warning-button:hover {
    background-color: #e0ac00;
}

.missing {
    border: 2px solid #dc3545 !important;
    background-color: #fff0f0;
}

.pdf-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.pdf-button:hover {
    text-decoration: none;
    background-color: #0056b3;
}


.login-body {
    background: linear-gradient(to right, #007bff, #00bfff);
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.login-box {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-box input {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border 0.3s;
}

.login-box input:focus {
    border-color: #007bff;
    outline: none;
}

.login-box button {
    margin-top: 1rem;
}

.login-error {
    color: #dc3545;
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
}

.login-logo {
    margin-bottom: 10px;
    height: 90px;
}

.login-box label {
    font-weight: bold;
}