/* === Általános beállítások === */
body {
    background-color: #f5f7fa;
    color: #212529;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* === Fejléc === */
header {
    background-color: #ffffff;
    border-bottom: 2px solid #004085;
    padding: 10px 0;
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004085;
    margin: 0;
}

/* === Űrlapmezők === */
.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.form-control {
    font-size: 14px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 10px;
    max-width: 400px;
}

/* === Gombok === */
button {
    background-color: #004085;
    color: white;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    border: none;
    transition: background-color 0.3s ease;
    margin-left: 8px;
}

button:hover {
    background-color: #002c5e;
}

button:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

/* === Eredmények (#banner) === */
#banner {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

#banner label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #212529;
}

label.result {
    display: block;
    font-size: 14px;
    padding: 4px 6px;
    margin-bottom: 10px;
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-width: 200px;
    text-align: left;
}

.result.fs-3 {
    font-size: 20px;
    font-weight: bold;
    color: #dc3545;
    background-color: #fff5f5;
    border: 1px solid #f5c2c7;
}

/* === Elrendezések === */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.d-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Gombok között hely */
.d-flex.gap-3 button {
    min-width: 120px;
    margin: 6px;
}

/* === Lábjegyzet === */
footer {
    background-color: #f8f9fa;
    color: #6c757d;
    border-top: 1px solid #e3e3e3;
    font-size: 13px;
    text-align: center;
    padding: 10px;
    margin-top: 40px;
}

/* === Reszponzivitás mobil nézetre === */
@media (max-width: 768px) {
    .form-control {
        max-width: 100%;
    }

    .row {
        flex-direction: column;
    }

    #banner {
        margin-top: 20px;
    }

    button {
        width: 100%;
        margin: 6px 0;
    }

    label.result {
        width: 100%;
    }
}
