/* style.css - MODERN DESIGN */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #00897b;       /* Orvosi türkiz */
    --primary-dark: #005f56;  /* Sötétebb türkiz gomboknak */
    --accent: #e0f2f1;        /* Halvány háttérszín */
    --text: #37474f;          /* Sötétszürke szöveg */
    --text-light: #78909c;    /* Halványabb szöveg */
    --bg: #f4f7f6;            /* Oldal háttér */
    --white: #ffffff;
    --danger: #e53935;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- KONTÉNER ÉS KÁRTYÁK --- */
.container {
    max-width: 900px;
    margin: 40px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* --- TIPO --- */
h1, h2, h3, h4 { color: var(--text); font-weight: 600; margin-top: 0; }
h1 { text-align: center; color: var(--primary); margin-bottom: 30px; letter-spacing: -1px; }
h3 { border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-top: 40px; color: var(--primary-dark); }
h4 { text-transform: uppercase; font-size: 0.85rem; color: var(--text-light); letter-spacing: 1px; margin-top: 25px; }
hr { border: 0; border-top: 1px solid #eee; margin: 30px 0; }

/* --- MENÜ (HEADER) --- */
.navbar {
    background: var(--white);
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--primary); text-decoration: none; }
.nav-links a {
    text-decoration: none;
    color: var(--text);
    margin-left: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

/* --- ŰRLAP ELEMEK --- */
label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text); font-size: 0.95rem; }

/* BIZTOSÍTOTTUK, HOGY MINDEN INPUT (JELSZÓ IS) UGYANÚGY NÉZZEN KI */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="date"], 
input[type="tel"], 
input[type="number"], 
textarea, 
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fafafa;
    transition: all 0.3s ease;
    /* Alapértelmezett böngésző stílusok felülírása */
    appearance: none; 
    -webkit-appearance: none;
    box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--accent);
}
textarea { min-height: 120px; resize: vertical; }

/* --- GOMBOK --- */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    text-align: center;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,137,123,0.3); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #c62828; box-shadow: 0 5px 15px rgba(229,57,53,0.3); }
.btn-secondary { background: #546e7a; }

/* --- TÁBLÁZAT (Admin) --- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background: #fafafa; color: var(--text-light); font-weight: 600; text-align: left; padding: 15px 20px; font-size: 0.85rem; text-transform: uppercase; }
td { padding: 15px 20px; border-bottom: 1px solid #eee; color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover { background-color: #fcfcfc; }

/* --- EGYÉB ELEMEK --- */
.flex-row { display: flex; flex-wrap: wrap; gap: 20px; }
.flex-1 { flex: 1; min-width: 200px; }

.checkbox-list {
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    max-height: 350px;
    overflow-y: auto;
}
.checkbox-item {
    display: flex;
    align-items: flex-start;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
    margin-bottom: 0;
}
.checkbox-item:hover { background: #eef; }
.checkbox-item input { margin-top: 4px; margin-right: 12px; width: 18px; height: 18px; accent-color: var(--primary); }

.info-box { background: var(--accent); color: var(--primary-dark); padding: 15px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.warning-box { background: #ffebee; color: var(--danger); padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center;}

/* Adatlap nézet */
.data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
.data-item { background: #fafafa; padding: 15px; border-radius: 8px; }
.data-label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; font-weight: 600; margin-bottom: 5px; }
.data-value { font-size: 1rem; font-weight: 500; }

/* --- LOGIN SPECIFIKUS STÍLUSOK --- */
.login-body {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    background: linear-gradient(135deg, var(--bg) 0%, #e0f2f1 100%);
    margin: 0;
}
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* --- ÚJ ELEMEK (Kereső és History) --- */

/* Kereső doboz */
.search-box {
    display: flex;
    align-items: center;
    background: white;
    padding: 5px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}
.search-box input {
    border: none;
    background: transparent;
    padding: 8px 15px;
    width: 250px;
    outline: none;
    box-shadow: none; /* Reseteli az alap input stílust */
}
.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}
.search-box button:hover { background: var(--primary-dark); }
.clear-search {
    color: #999;
    text-decoration: none;
    font-weight: bold;
    padding: 0 10px;
}
.clear-search:hover { color: var(--danger); }

/* Gombok színei */
.btn-info { background: #17a2b8; color: white; }
.btn-info:hover { background: #138496; }

/* Timeline (Idővonal) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
/* A függőleges vonal */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #eee;
    top: 0;
    bottom: 0;
    left: 20px; /* Mobilon bal oldalt */
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 50px; /* Hely a dátumnak és pöttynek */
}

/* A pötty */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 12px;
    background-color: var(--white);
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    position: absolute;
    left: -90px;
    top: 10px;
    text-align: right;
    width: 80px;
    display: none; /* Mobilon elrejtjük, desktopon megjelenítjük */
}

.timeline-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Nagyobb kijelzőkön szebb timeline */
@media screen and (min-width: 768px) {
    .timeline::after { left: 120px; }
    .timeline-item { padding-left: 150px; }
    .timeline-item::after { left: 112px; }
    .timeline-date { display: block; left: 0; text-align: right; width: 100px; }
    
    .date-big { display: block; font-weight: bold; color: var(--text); }
    .date-time { font-size: 0.85rem; color: var(--text-light); }
}