/* style.css */

/* Alapok */
body { font-family: Arial, sans-serif; margin: 20px; background-color: #3d3d3d; color: #333; }
h1, h2, h3 { color: #0056b3; }
a { text-decoration: none; color: #007bff; }
a:hover { text-decoration: underline; }

/* Vezérlők sáv */
.controls { margin-bottom: 20px; background-color: #fff; padding: 15px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.controls label { font-weight: bold; margin-right: 5px; }
.controls select, .controls input[type="text"] { padding: 8px; border: 1px solid #ccc; border-radius: 4px; }

/* Gombok */
.btn { padding: 10px 15px; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block; }
.btn:hover { background-color: #0056b3; color: white; text-decoration: none; }
.btn-danger { background-color: #dc3545; }
.btn-danger:hover { background-color: #bd2130; }
.btn-success { background-color: #28a745; }
.btn-success:hover { background-color: #218838; }

/* --- ÚJ: Kosár és Jelvény (Badge) stílusok --- */

/* Relatív pozíció a gombnak, hogy a jelvény rá tudjon ülni */
.btn-relative {
    position: relative;
    display: inline-block;
}

/* Piros jelvény a gomb sarkában */
.badge-count {
    background-color: #dc3545; /* Piros */
    color: white;
    border-radius: 50%; /* Kör */
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 15px;
    height: 15px;
    text-align: center;
    line-height: 15px;
    position: absolute;
    top: -8px;   /* Kilógatva felül */
    right: -8px; /* Kilógatva oldalt */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid white; /* Kis keret, hogy elváljon */
}

/* Kosár gomb */
.view-cart-button, #viewCartButton {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    text-decoration: none;
}
.view-cart-button:hover, #viewCartButton:hover {
    background-color: #0056b3;
}

/* Kosár és Frissítés info konténer (Jobb oldalt) */
.cart-info-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.update-text {
    font-size: 0.85em;
    color: #666;
    text-align: right;
    line-height: 1.2;
}

/* Táblázat */
.table-container { overflow-x: auto; max-height: 80vh; border-radius: 10px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }
th { background-color: #e2e2e2; position: sticky; top: 0; z-index: 10; cursor: pointer; }
th:hover { background-color: #dcdcdc; }
tr:nth-child(even) { background-color: #f9f9f9; }
tr:hover { background-color: #f1f1f1; }

td.clickable-model { cursor: pointer; }
td.clickable-price { cursor: pointer; font-weight: bold; }
td.clickable-price:hover { color: #0056b3; }

.no-results { text-align: center; padding: 20px; color: #888; }

/* Modal stílusok */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.modal-content { position: relative; background-color: #fefefe; margin: auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 600px; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); border-radius: 8px; display: flex; flex-direction: column; text-align: center; }
.close-button { color: #aaa; position: absolute; top: 10px; right: 15px; font-size: 35px; font-weight: bold; cursor: pointer; }
.close-button:hover, .close-button:focus { color: black; text-decoration: none; cursor: pointer; }

/* Futó szöveg */
.info-bar {
    background-color: #cd6565;
    color: #ffffff;
    padding: 0px;
    text-align: center;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 8px;
    margin-bottom: 10px;
}
.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
}
@keyframes scroll-left {
    from { transform: translateX(0%); }
    to { transform: translateX(-100%); }
}

/* Auth formok */
.auth-container { max-width: 400px; margin: 50px auto; background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input { width: 100%; padding: 10px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; }

.blur-price { filter: blur(1px); user-select: none; cursor: not-allowed; }

/* Profil status badge (megtartva) */
.status-badge { padding: 5px 10px; border-radius: 15px; font-size: 0.85em; color: white; display: inline-block; white-space: nowrap; min-width: 100px; text-align: center;}
.status-pending { background-color: #ffc107; color: #333; }
.status-processing { background-color: #17a2b8; }
.status-shipped { background-color: #6f42c1; }
.status-completed { background-color: #28a745; }
.status-cancelled { background-color: #dc3545; }


/* style.css (meglévő tartalom után) */

/* ... (korábbi stílusok) ... */

/* --- ÚJ: AZONNALI CSS TOOLTIP (Buborék) --- */

.tooltip-box {
    position: relative;
    display: inline-block;
    cursor: help; /* Kérdőjel kurzor */
    border-bottom: 1px dotted #999; /* Finom jelzés, hogy van ott valami */
}

/* A rejtett buborék */
.tooltip-info {
    visibility: hidden;
    width: 200px;
    background-color: #333; /* Sötét háttér */
    color: #fff; /* Fehér szöveg */
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1000; /* Legyen legfelül */
    
    /* Pozicionálás a név fölé */
    bottom: 120%;
    left: 50%;
    margin-left: -100px; /* Középre igazítás */
    
    /* Átlátszóság animáció */
    opacity: 0;
    transition: opacity 0.3s;
    
    /* Szövegformázás */
    font-size: 0.9em;
    font-weight: normal;
    line-height: 1.4;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    pointer-events: none; /* Ne zavarja az egeret */
}

/* Kis nyíl a buborék alján */
.tooltip-info::after {
    content: "";
    position: absolute;
    top: 100%; /* Alulra */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Megjelenítés hover-kor */
.tooltip-box:hover .tooltip-info {
    visibility: visible;
    opacity: 1;
}