/* style.css - Modern 2026 Design */

:root {
    --primary-color: #086335;
    --primary-hover: #064b2a;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --bg-color: #f4f7f6;
    --surface-color: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER ÉS NAVIGÁCIÓ --- */
header.topbar {
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.topbar-logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

/* Dropdown menük */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.dropbtn:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface-color);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-main);
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

/* Hamburger Menü */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- GOMBOK --- */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

button:hover, .btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.btn-danger {
    background: var(--danger-color);
    box-shadow: none;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

/* --- KONTÉNER ÉS ŰRLAPOK --- */
.container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 70vh;
}

form {
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

form label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="file"],
form textarea,
form select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-color);
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* --- TÁBLÁZATOK ÉS CELLÁK --- */
.overflow-x-auto {
    width: 100%;
    overflow-x: auto;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

table th {
    background: var(--bg-color);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
}

/* Fix táblázat a keresők számára */
table.table-fixed {
    table-layout: fixed;
    width: 100%;
    min-width: 1000px; /* Egy picit csökkentettük a szélességet az oszlopok száma miatt */
}

/* Cellák magasságának korlátozása és egysorosítás */
table.table-fixed td {
    padding: 12px 15px; 
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px; /* Megnövelt szélesség a rejtett oszlopok miatt */
    height: 50px; 
    color: var(--text-main);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: var(--bg-color);
}

/* --- HIPERHIVATKOZÁS TICKET --- */
.clickable-ticket {
    color: var(--primary-color); /* Visszaállítva zöldre */
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
    display: inline-block;
}

.clickable-ticket:hover {
    color: var(--secondary-color); /* Hovernél picit világosabb zöld lesz */
    text-decoration: none; 
}

/* --- FELUGRÓ ABLAK (MODAL) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7); 
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 900px; 
    max-height: 85vh; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    border-top: 6px solid var(--primary-color);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 800;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    border: none;
    background: none;
    transition: color 0.2s;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 30px;
    overflow-y: auto; 
}

.modal-body .detail-row {
    margin-bottom: 20px;
}

.modal-body .detail-label {
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.modal-body .detail-value {
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-color);
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    line-height: 1.6;
    white-space: pre-wrap; 
}

/* Lábjegyzet */
footer {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* --- MOBIL NÉZET --- */
@media (max-width: 850px) {
    .hamburger { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px; left: 0; right: 0;
        background: var(--surface-color);
        padding: 20px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .nav-links .dropdown, .nav-links .dropbtn { width: 100%; }
    .dropdown-content {
        position: static; box-shadow: none; border: none;
        border-left: 3px solid var(--primary-color);
        border-radius: 0; padding-left: 10px; display: none;
        transform: none; visibility: visible; opacity: 1;
    }
    .dropdown.active .dropdown-content { display: flex; }
    .btn-danger { width: 100%; margin-top: 10px; }
}