/* --- STILURI GENERALE --- */
body { 
    font-family: Arial, sans-serif; 
    background: #f4f6f9; 
    margin: 0; 
    padding: 20px; 
    color: #333; 
}

.stat-box { 
    background: #fff; 
    padding: 15px; 
    border-radius: 8px; 
    text-align: center; 
    margin-bottom: 20px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

/* Structura Grid - spartă pe linii pentru a elimina erorile din editorul cPanel */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; 
    max-width: 1300px; 
    margin: 0 auto; 
}

/* --- CARDURI MODELE --- */
.card { 
    background: white; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.img-box { 
    width: 100%; 
    height: 180px; 
    background: #e0e0e0; 
    border-radius: 6px; 
    overflow: hidden; 
    position: relative; 
}

.img-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease; 
}

.card:hover .img-box img { 
    transform: scale(1.05); 
}

/* --- INSIGNE STATUS (BADGES) --- */
.badge { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 11px; 
    color: white; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    z-index: 2; 
}

.online { 
    background: #2ecc71; 
    box-shadow: 0 0 8px #2ecc71; 
} 

.offline { 
    background: #95a5a6; 
}

.dot { 
    width: 6px; 
    height: 6px; 
    background-color: #fff; 
    border-radius: 50%; 
    box-shadow: 0 0 4px #fff; 
    animation: livePulsing 1.2s infinite ease-in-out; 
}

@keyframes livePulsing {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* --- TEXTE SI BUTOANE --- */
h3 { 
    margin: 10px 0 5px 0; 
    font-size: 16px; 
    color: #2c3e50; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

p { 
    margin: 3px 0; 
    font-size: 13px; 
    color: #555; 
}

.btn { 
    display: block; 
    text-align: center; 
    background: #b50427; 
    color: white; 
    text-decoration: none; 
    padding: 8px; 
    margin-top: 10px; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 13px; 
}

/* Ajustare pentru ecrane mici (Telefoane mobile) */
@media (max-width: 600px) {
    .header-container { 
        flex-direction: column; 
        gap: 15px; 
    }
}
