/* Alap stílusok */
body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f5f5f5; padding-bottom: 80px; /* Space for cookie banner */ }
.container { background-color: white; padding: 40px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
h1, h2 { color: #333; text-align: center; }
.action-btn { margin: 5px; padding: 8px 12px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; text-decoration: none; display: inline-block; }
.btn-green { background-color: #4CAF50; color: white; }
.btn-blue { background-color: #008CBA; color: white; }
.btn-red { background-color: #f44336; color: white; }
.btn-grey { background-color: #ccc; color: #333;}
.btn-orange { background-color: #f39c12; color: white;}
.btn-purple { background-color: #8e44ad; color: white;}
.friends-table, .users-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.friends-table th, .friends-table td, .users-table th, .users-table td { border: 1px solid #ddd; padding: 8px; text-align: left; }
.friends-table th, .users-table th { background-color: #f2f2f2; }
.friends-table tbody tr:hover { background-color: #f5f5f5; }
#map-container iframe { border: 1px solid #ddd; border-radius: 5px; margin-top: 15px; }

/* Keresőmező stílusok */
.search-container {
    text-align: center;
    margin: 20px 0;
}

.search-container form {
    display: inline-flex;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-container input[type="text"] {
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    outline: none;
    width: 250px; /* Vagy amilyen széleset szeretnél */
}

.search-container button {
    border: none;
    background-color: #008CBA;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    border-left: 1px solid #007399;
    transition: background-color 0.3s;
}

.search-container button:hover {
    background-color: #007399;
}


/* Bejelentkező oldal elrendezése */
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-promo { background: linear-gradient(to right, #333333, #f5f5f5); color: white; padding: 40px; text-align: center; }
.login-promo .promo-image { max-width: 100%; height: auto; border-radius: 10px; margin-bottom: 20px; }
.login-main { display: flex; justify-content: center; align-items: center; padding: 40px; }
.login-main .container { max-width: 400px; width: 100%; }
.register-container { max-width: 600px; }

.honeypot-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Reszponzív viselkedés mobilra */
@media (max-width: 1024px) {
    .login-layout { grid-template-columns: 1fr; }
    .login-promo { display: none; }
    .login-main { padding: 20px; }
    body { margin: 0; max-width: 100%; }
}

/* Stílusok a bejelentkezési, regisztrációs és profil oldalhoz */
body.auth-page { max-width: 600px; margin: 50px auto; }
.auth-page .container { text-align: center; }
.subtitle { color: #666; margin-bottom: 30px; }
.error-message { color: red; margin-top: 15px; min-height: 1.2em; font-weight: bold; }
.success-message { color: green; margin-top: 15px; min-height: 1.2em; font-weight: bold; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; color: #555; font-weight: bold; }
.form-group input[type="email"], .form-group input[type="password"], .form-group input[type="text"] { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; font-size: 14px; }
.form-group input[disabled] { background-color: #eee; }
input[type="submit"] { width: 100%; padding: 12px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: bold; margin-top: 10px; }
input[type="submit"]:hover { background-color: #45a049; }
.divider { margin: 30px 0; border-top: 1px solid #ddd; position: relative; }
.divider span { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background-color: white; padding: 0 10px; color: #999; }
.register-link { display: inline-block; padding: 12px 30px; background-color: #008CBA; color: white; text-decoration: none; border-radius: 5px; font-weight: bold; }
.register-link:hover { background-color: #007399; }
.register-section p { color: #666; margin-bottom: 15px; }

/* Nyelvválasztó */
.language-selector { position: absolute; top: 15px; right: 20px; font-size: 14px; z-index: 10; }
.language-selector a { text-decoration: none; color: #008CBA; }
.language-selector a:hover { text-decoration: underline; }
.language-selector b { font-weight: bold; color: #333; }

/* Profil oldal elrendezése */
.profile-layout { display: flex; flex-wrap: wrap; gap: 40px; }
.profile-main { flex: 3; min-width: 300px; }
.profile-sidebar { flex: 1; min-width: 200px; text-align: center; }
.avatar-image { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); margin-bottom: 15px; }
#avatar-upload-form input[type="file"] { display: none; }
.custom-file-upload { display: inline-block; padding: 10px 15px; cursor: pointer; background-color: #008CBA; color: white; border-radius: 5px; font-weight: bold; margin-bottom: 10px; }
.custom-file-upload:hover { background-color: #007399; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.85); color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; z-index: 1001; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: #4CAF50; text-decoration: underline; }
.cookie-banner.hidden { display: none; }

/* Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-overlay.visible { display: flex; }
.modal-content { background: white; padding: 25px; border-radius: 8px; width: 90%; max-width: 500px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
#modal-title { margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 15px; }
#modal-body { margin: 20px 0; }
#modal-body input { width: 100%; padding: 8px; margin-top: 10px; }
#modal-body ul { list-style-type: none; padding-left: 0; }
#modal-body li { background: #f9f9f9; padding: 8px; border-radius: 4px; margin-bottom: 5px; }
.modal-actions { text-align: right; margin-top: 20px; }
.pagination-controls { margin-top: 15px; margin-bottom: 15px; text-align: center; }