html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #ffa500;
}


header .header-content h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: #ffa500;
}

h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 2px solid #ffa500;
    padding-bottom: 5px;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
    text-align: center;
    margin-top: 100px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f3f3f3;
    font-weight: bold;
    color: #333;
}

td {
    background-color: #ffffff;
    color: #333;
}

tr:nth-child(odd) td {
    background-color: #f9f9f9; /* Halványabb szürke */
}

tr:nth-child(even) td {
    background-color: #ffffff;
}

tr:hover td {
    background-color: #f1f1f1;
}

input[type="text"],
input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease-in-out;
    margin: 5px 0;
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: #ffa500;
    background-color: #fffdfa;
}

button.save-button {
    background-color: #ffa500;
    color: white;
    font-size: 1rem;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    margin-top: 10px;
    text-transform: uppercase;
}

button.save-button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background-color: #28a745;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInOut 4s ease-out;
    margin-top: 10px;
}

.toast.error {
    background-color: #dc3545;
}

@keyframes fadeInOut {
    0%, 80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

footer a {
    color: #ffa500;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
    color: #ffd966;
}

.description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.5;
}

.field-description {
    font-size: 0.85rem;
    color: #888;
    padding-left: 10px;
    text-align: left;
    vertical-align: middle;
    max-width: 250px;
    word-wrap: break-word;
}

.info-block {
    background-color: #f9f9f9;
    border-left: 4px solid #ffa500;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.info-block p {
    margin: 0; /* Megakadályozza a dupla margókat */
}

.info-block strong {
    color: #333;
    font-weight: bold; /* Emelheted ki a fontos szavakat */
}

canvas {
    max-width: 400px;
    margin: 20px auto;
    display: block;
}

/* Header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: white;
}

.header-content h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffa500;
    margin: 0;
}
