/* ============================================================
   ALAP STÍLUSOK
============================================================ */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f4f4;
    color: #222;
}

h1, h2, h3 {
    margin-top: 0;
}

/* ============================================================
   LOGIN OLDAL – KÉTPANELES LAYOUT
============================================================ */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Bal oldal – nyilvános tartalom */
.public-side {
    flex: 1;
    background: #363636;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-box {
    max-width: 700px;
    background: #838282;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.public-box h2 {
    font-size: 26px;
    color: #fffdfd;
}

.public-box p {
    font-size: 16px;
    color: #fffdfd;
    line-height: 1.5;
}

.public-img {
    width: 100%;
    border-radius: 12px;
    margin-top: 15px;
}

/* Jobb oldal – login panel */
.login-side {
    width: 420px;
    background: #f9f9f9;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ddd;
}

.login-box {
    width: 100%;
    max-width: 320px;
}

.login-box h1 {
    margin-bottom: 20px;
    font-size: 28px;
}

/* Login form */
label {
    font-weight: 600;
    margin-top: 12px;
    display: block;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.login-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.login-btn:hover {
    background: #005fa3;
}

.login-error {
    background: #ffd6d6;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Mobil */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
    }
    .public-side, .login-side {
        width: 100%;
        border: none;
    }
}

/* ============================================================
   USER OLDAL – KÉTPANELES LAYOUT
============================================================ */
.user-wrapper {
    display: flex;
    min-height: 100vh;
}

.user-content {
    flex: 1;
    padding: 40px;
}

/* ============================================================
   USER – KÁRTYÁK, LISTÁK
============================================================ */
.card {
    background: #5e5d5d;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* ============================================================
   USER – POLL (SZAVAZÁS) GOMBOK
============================================================ */
.poll-full {
    background: #474747;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.poll-option {
    display: block;
    background: #555;
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}

.poll-option:hover {
    background: #444;
    transform: translateY(-2px);
}

.poll-option input[type="radio"] {
    display: none;
}

.poll-option input[type="radio"]:checked + span {
    background: #0077cc;
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    display: block;
}

.poll-btn {
    margin-top: 15px;
    padding: 12px 20px;
    background: #0077cc;
    color: white;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.poll-btn:hover {
    background: #005fa3;
}

/* Poll eredmények */
.poll-result {
    margin-bottom: 18px;
}

.poll-result-label {
    font-weight: bold;
    margin-bottom: 6px;
}

.you-voted {
    color: #0077cc;
    font-size: 0.9rem;
    margin-left: 6px;
}

.poll-bar {
    width: 100%;
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.poll-bar-fill {
    height: 100%;
    background: #0077cc;
}

.poll-percent {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #555;
}

/* ============================================================
   ADMIN SIDEBAR – EREDETI, MŰKÖDŐ DIZÁJN
============================================================ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #2c3e50;
    color: white;
    padding: 30px 20px;
    box-sizing: border-box;
}

.admin-sidebar h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar ul li {
    margin-bottom: 12px;
}

.admin-sidebar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.admin-sidebar ul li a:hover {
    background: #34495e;
}

.admin-content {
    flex: 1;
    padding: 40px;
    background: #f9f9f9;
}


/* ============================================================
   ADMIN – TÁBLÁZATOK
============================================================ */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.table th {
    background: #f0f0f0;
    padding: 14px;
    text-align: left;
    font-size: 15px;
    color: #333;
}

.table td {
    padding: 14px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 15px;
    color: #444;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: #fafafa;
}

/* ============================================================
   GOMBOK (ADMIN + USER)
============================================================ */
.btn {
    display: inline-block;
    padding: 10px 16px;
    background: #0077cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn:hover {
    background: #005fa3;
}

.btn-small {
    display: inline-block;
    padding: 6px 12px;
    background: #0077cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 6px;
}

.btn-small:hover {
    background: #005fa3;
}

.btn-small.delete {
    background: #c62828;
}

.btn-small.delete:hover {
    background: #a61f1f;
}

/* ============================================================
   ALERT BOXOK
============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #d4f8d4;
    color: #1e7a1e;
}

.alert-error {
    background: #ffd6d6;
    color: #c62828;
}

.admin-content form input[type="text"],
.admin-content form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    margin-bottom: 20px;
}

.admin-content form input[type="file"] {
    margin-bottom: 20px;
}

.admin-content form button {
    padding: 12px 20px;
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.alert-success {
    background: #d4f8d4;
    color: #1e7a1e;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* PUBLIC_PAGE szerkesztő formázás */
.admin-content form {
    max-width: 700px;
    margin: 0 auto;
}

.admin-content form label {
    font-weight: 600;
    margin-top: 20px;
    display: block;
    color: #333;
    font-size: 15px;
}

.admin-content form input[type="text"],
.admin-content form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    margin-top: 6px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.admin-content form input[type="file"] {
    margin-top: 10px;
    margin-bottom: 20px;
}

.admin-content form button {
    padding: 12px 20px;
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.admin-content form button:hover {
    background: #005fa3;
}

.admin-content img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
