@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

body {
    background-color: #0d0d0d;
    color: white;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

/* Felső Navigáció */
.profil-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
}

.back-link {
    color: #888;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.back-link:hover {
    color: #cc0000;
}

/* Fő elrendezés: Oldalsáv + Tartalom */
.profil-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 40px;
    padding: 0 20px;
}

/* OLDALSÁV (SIDEBAR) */
.profil-sidebar {
    width: 280px;
    background: #151515;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.user-avatar {
    font-size: 60px;
    color: #cc0000;
    margin-bottom: 15px;
}

.profil-sidebar h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    word-break: break-all;
}

.rix-status {
    font-size: 12px;
    color: #888;
    margin-bottom: 30px;
    font-weight: bold;
}

.badge {
    background: #cc0000;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 5px;
}

/* Menüpontok */
.profil-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.profil-menu li {
    margin-bottom: 10px;
}

.profil-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 6px;
    transition: 0.3s;
}

.profil-menu a:hover, .profil-menu li.active a {
    background: rgba(204, 0, 0, 0.1);
    color: #cc0000;
}

.logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #cc0000;
    color: #cc0000;
    padding: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.logout-btn:hover {
    background: #cc0000;
    color: white;
}

/* FŐ TARTALOM (MAIN) */
.profil-content {
    flex: 1;
}

.profil-content h2 {
    margin-top: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-cards {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.dash-card {
    flex: 1;
    background: #151515;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.dash-card h4 {
    margin: 0;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

.dash-card .number {
    font-size: 32px;
    font-weight: 900;
    margin: 10px 0 0 0;
}

/* RENDELÉS KÁRTYA */
.order-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #444;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: bold;
}

.status.completed {
    color: #00cc00;
    background: rgba(0, 204, 0, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-item img {
    width: 50px;
    border-radius: 6px;
    border: 1px solid #333;
}

.order-item p { margin: 0; font-weight: bold; }
.order-item small { color: #888; }

.order-price {
    font-size: 18px;
    font-weight: 900;
    color: white;
}

/* =========================================
   MOBIL NÉZET (APP-STÍLUSÚ OPTIMALIZÁLÁS)
   ========================================= */
   @media (max-width: 900px) {
    .profil-container {
        flex-direction: column;
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .profil-sidebar {
        width: 100%;
        box-sizing: border-box;
        padding: 20px 15px;
    }

    /* Vízszintesen lapozható menü telefonon! */
    .profil-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        margin-bottom: 20px;
        /* Hogy sima (smooth) legyen a görgetés iPhone-on is: */
        -webkit-overflow-scrolling: touch; 
    }
    
    .profil-menu::-webkit-scrollbar {
        height: 4px; /* Vékony görgetősáv */
    }
    .profil-menu::-webkit-scrollbar-thumb {
        background: #cc0000; 
        border-radius: 4px;
    }

    .profil-menu li {
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .profil-menu a {
        padding: 10px 15px;
        font-size: 12px;
    }

    /* Kártyák egymás alá */
    .dashboard-cards {
        flex-direction: column;
        gap: 10px;
    }
    
    .dash-card {
        padding: 15px;
    }
    
    .dash-card .number {
        font-size: 28px;
    }

    /* Rendelés kártya mobilra igazítva */
    .order-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* =========================================
   ÜRES ÁLLAPOTOK (EMPTY STATES) ÉS GOMBOK
   ========================================= */

   .empty-state {
    background: #151515;
    border: 1px dashed #333;
    border-radius: 10px;
    padding: 50px 20px;
    text-align: center;
    color: #666;
    margin-top: 20px;
}

.empty-state i {
    font-size: 40px;
    color: #333;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 25px;
}

/* Kicsi gomb a profilon belülre */
.profil-action-btn {
    display: inline-block;
    background: #cc0000;
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: 5px;
    transition: 0.3s;
}

.profil-action-btn:hover {
    background: #ff1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3);
}

/* =========================================
   RIX KIJELENTKEZÉS MODAL (FELUGRÓ ABLAK)
   ========================================= */

/* A sötétítő háttér, ami alapból rejtve van */
.modal-overlay {
    display: none; /* EZ TUNTETI EL ALAPBÓL! */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Sötétített háttér */
    z-index: 99999; /* Minden más felett legyen */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Homályosítja a hátteret */
}

/* Amikor a JS ráadja az "active" osztályt, akkor megjelenik középen */
.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

/* Maga a doboz */
.modal-box {
    background-color: #0d0d0d;
    padding: 40px;
    border: 1px solid #cc0000; /* RIX Piros keret */
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 50px rgba(204, 0, 0, 0.2);
}

.modal-box h3 {
    color: white;
    font-size: 24px;
    text-transform: uppercase;
    margin-top: 0;
    font-weight: 900;
}

.modal-box p {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Modal gombok animációi */
.modal-box button {
    transition: 0.3s;
}

.modal-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.4);
}

/* Felugró animáció */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}