/* --- 1. ALAPOK --- */
body { background-color: #0f172a; margin: 0; font-family: 'Segoe UI', Arial, sans-serif; color: #f8fafc; }

/* --- 2. HEADER ÉS MENÜ --- */
.site-header { display: flex; justify-content: space-between; align-items: center; background-color: #1e293b; padding: 15px 40px; border-bottom: 4px solid #3399ff; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.main-nav ul { list-style: none; display: flex; gap: 15px; margin: 0; padding: 0; }
.main-nav a { background-color: #ffff66; color: #000; text-decoration: none; font-weight: bold; padding: 10px 25px; border-radius: 50px; font-size: 14px; transition: 0.3s; display: block; }
.main-nav a:hover { background-color: #3399ff; color: #fff; transform: scale(1.05); }

/* --- 3. REKLÁMOK --- */
.ad-column { flex: 1; display: flex; align-items: center; }
#right-ads { justify-content: flex-end; }
.ad-item { display: none; position: relative; padding: 8px 20px; background: rgba(255, 255, 204, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; text-decoration: none; overflow: hidden; }
.ad-item.active { display: inline-block; }
.ad-item::after { content: ""; position: absolute; top: 0; left: -150%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); transform: skewX(-25deg); animation: shine-animation 6s infinite; }
@keyframes shine-animation { 0% { left: -150%; } 15% { left: 150%; } 100% { left: 150%; } }

/* --- 4. RÁCS ÉS KÁRTYA --- */
.content-wrapper { max-width: 1200px; margin: 40px auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; padding: 0 20px; align-items: start; }
@media (max-width: 900px) { .content-wrapper { grid-template-columns: 1fr; } }
.glass-card { background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: 0.3s; }
.card-title { font-size: 1.3rem; margin-bottom: 20px; color: #3399ff; border-left: 4px solid #3399ff; padding-left: 15px; font-weight: bold; text-transform: uppercase; }

/* --- 5. HIBA ÉS MEGERŐSÍTÉS (PIROSKÁK) --- */
.error-card { border: 2px solid #ef4444 !important; box-shadow: 0 0 25px rgba(239, 68, 68, 0.4) !important; }
.error-banner { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #fff; padding: 12px; border-radius: 10px; margin-bottom: 20px; text-align: center; font-weight: bold; }

/* --- 6. SPECIÁLIS TÍPUSOK --- */
.type-normal { border-left-color: #3399ff !important; color: #3399ff; }
.type-vip { border-left-color: #a855f7 !important; color: #a855f7; }
.type-callback { border-left-color: #14b8a6 !important; color: #14b8a6; }
.unlimited-card { border-color: #6f42c1 !important; box-shadow: 0 10px 40px rgba(111, 66, 193, 0.2); }
.unlimited-text { color: #6f42c1 !important; }

/* --- 7. ADATOK ÉS STATISZTIKÁK --- */
.info-box-container { background: rgba(15, 23, 42, 0.5); padding: 20px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.05); }
.stat-box { background: rgba(15, 23, 42, 0.6); padding: 20px; border-radius: 15px; text-align: center; border: 1px solid rgba(51, 153, 255, 0.1); }
.stat-num { font-size: 2rem; font-weight: 800; display: block; color: #fff; }
.stat-num:hover { transform: scale(1.1); color: #3399ff; transition: 0.3s; cursor: default; }
.stat-desc { color: #94a3b8; font-size: 0.8rem; text-transform: uppercase; margin-top: 5px; }

/* --- 8. GOMBOK --- */
.btn { display: inline-block; padding: 14px 25px; border-radius: 12px; border: none; font-weight: bold; cursor: pointer; transition: 0.3s; color: #fff; text-decoration: none; text-align: center; }
.btn-blue { background: #3399ff; }
.btn-red { background: #ef4444; }
.btn-delete { background: #ef4444 !important; box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3); color: white !important; } 
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-vissza { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(51, 153, 255, 0.1); border: 1px solid rgba(51, 153, 255, 0.4); color: #3399ff; border-radius: 10px; font-weight: 600; text-decoration: none; transition: 0.3s; }
.btn-vissza:hover { background: rgba(51, 153, 255, 0.2); border-color: #3399ff; transform: translateX(-3px); }

/* --- 9. MŰVELET LINKEK --- */
.action-link { display: inline-flex !important; align-items: center !important; gap: 5px !important; font-size: 0.9rem !important; font-weight: 600 !important; text-decoration: none !important; background: none !important; border: none !important; padding: 0 !important; }
.link-edit { color: #3399ff !important; }
.link-view { color: #ffff66 !important; }
.link-delete { color: #ef4444 !important; }
.action-link:hover { text-decoration: underline !important; filter: brightness(1.2); }


/* --- 10. JAVÍTOTT LÜKTETŐ PÖTTY (KÉK) --- */
/* --- A lüktető zöld pötty alapja --- */
.gateway-status-bullet { 
    display: inline-block; 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    margin-left: 8px; /* Most már a szöveg utánra optimalizálva */
}

/* Aktív állapot - Az eredeti zölddel */
.gateway-active { 
    background-color: #10b981 !important; 
    box-shadow: 0 0 12px #10b981, 0 0 4px #fff;
    animation: pulse-green 2s infinite; 
}

/* Inaktív állapot - Szürke */
.gateway-inactive { 
    background-color: #64748b !important; 
    opacity: 0.5; 
}

/* Az eredeti zöld lüktetés animációja */
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* A szöveg lüktetése pötty nélkül */
.status-pulse-text {
    animation: text-pulse-green 2s infinite ease-in-out;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4); /* Finom zöld ragyogás a betűk körül */
}

@keyframes text-pulse-green {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

/* A régi pötty kódokat (gateway-status-bullet, gateway-active) nyugodtan törölheted */


/* --- 11. A VARÁZSLATOS STATISZTIKA GOMB --- */
.btn-stats-unique {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
    color: #ffffff !important;
    padding: 14px 35px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 1px !important;
    box-shadow: 0 8px 15px rgba(20, 184, 166, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
}
.btn-stats-unique:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 25px rgba(20, 184, 166, 0.6) !important;
    filter: brightness(1.2) !important;
}