/* style.css - MIX365 DEDAL - VERSIUNE FINALA 2026 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #0a4676;    /* Albastru MIX */
    --accent-color: #f37121;     /* Portocaliu 365 */
    --bg-color: #f4f7f9;
    --card-bg: #ffffff;
    --border-radius: 12px;
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-color); 
    margin: 0; 
    padding-bottom: 90px; /* Spatiu pentru bara de jos */
    color: #333;
}

/* --- BRANDING --- */
.text-mix { color: var(--primary-color); font-weight: 800; }
.text-365 { color: var(--accent-color); font-weight: 800; }
.text-dedal { color: var(--primary-color); font-weight: 600; font-style: italic; }

/* --- LOGIN: CENTRARE PERFECTA --- */
.login-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    width: 100%; 
    background: var(--bg-color);
}

/* --- DASHBOARD: CASETE IDENTICE --- */
.card-custom { 
    background: white; 
    border-radius: var(--border-radius); 
    border: none; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    padding: 30px 15px; 
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: center !important; 
    align-items: center !important;
    height: 100% !important; 
    min-height: 180px; 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s;
}
.card-custom:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.icon-box { 
    width: 55px; 
    height: 55px; 
    background: #f0f4f8; 
    color: var(--primary-color); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    margin-bottom: 15px; 
}

/* --- TABEL MODERN (ANTI-90s) & RESPONSIV --- */
.table-container { 
    background: white; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    border: 1px solid #eee; 
}

/* Header Tabel Modern Gri-Albastru */
.table thead th { 
    background-color: #f1f4f7 !important; 
    color: #495057; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.75rem;
    letter-spacing: 0.5px; 
    padding: 18px 15px; 
    border-bottom: 2px solid #dee2e6;
}

/* FIX MOBIL: Tabelul devine lista de carduri in portret */
@media (max-width: 768px) {
    .table-mobile thead { display: none; }
    .table-mobile tr { 
        display: block; 
        margin-bottom: 15px; 
        background: white; 
        border-radius: 12px; 
        padding: 10px; 
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border: 1px solid #eee;
    }
    .table-mobile td { 
        display: flex; 
        justify-content: space-between; 
        padding: 10px 12px; 
        border: none !important; 
        font-size: 0.9rem;
        border-bottom: 1px solid #f8f9fa !important;
    }
    .table-mobile td:last-child { border-bottom: none !important; }
    /* Adaugam etichete pentru context fara tabel */
    .table-mobile td::before { 
        content: attr(data-label); 
        font-weight: 800; 
        color: #888; 
        text-transform: uppercase;
        font-size: 0.7rem;
    }
}

/* --- BARA NAVIGARE JOS (FIXATA) --- */
.bottom-nav { 
    position: fixed; 
    bottom: 0; left: 0; right: 0; 
    height: 75px; 
    background: white; 
    display: flex !important; 
    justify-content: center; 
    align-items: center; 
    border-top: 1px solid #eee; 
    z-index: 1000; 
    box-shadow: 0 -2px 15px rgba(0,0,0,0.08); 
}
.nav-item-link { 
    text-decoration: none !important; 
    color: #888; 
    font-size: 11px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 90px; 
}
.nav-item-link i { font-size: 22px; margin-bottom: 4px; }
.nav-item-link.active { color: var(--accent-color); }

/* --- DOSAR CLIENT ELEMENTS --- */
.section-title { 
    font-size: 0.85rem; 
    font-weight: 800; 
    color: var(--primary-color); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 20px; 
    border-bottom: 2px solid #f0f0f0; 
    padding-bottom: 8px; 
    width: 100%; 
    display: block; 
}

.ios-switch { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.ios-switch input { opacity: 0; width: 0; height: 0; }
.slider { 
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; 
    background-color: #e9e9ea; transition: .3s; border-radius: 24px; 
}
.slider:before { 
    position: absolute; content: ""; height: 20px; width: 20px; 
    left: 2px; bottom: 2px; background-color: white; 
    transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}
input:checked + .slider { background-color: #34c759; }
input:checked + .slider:before { transform: translateX(20px); }

/* --- CHAT MODERNA (STIL X) --- */
.chat-wrapper { background: #fff; border: 1px solid #e1e8ed; border-radius: 16px; overflow: hidden; }
.chat-post { padding: 12px; border-bottom: 1px solid #eff3f4; display: flex; gap: 10px; transition: 0.2s; }
.chat-post:hover { background: #f7f9f9; }
.chat-avatar { 
    width: 36px; height: 36px; background: var(--primary-color); 
    border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; color: white; font-weight: bold; flex-shrink: 0; 
}
.chat-user-name { font-weight: 800; font-size: 0.9rem; color: #0f1419; }
.chat-date { color: #536471; font-size: 0.8rem; margin-left: 5px; }
.chat-text { font-size: 0.9rem; color: #0f1419; margin-top: 2px; line-height: 1.4; }

/* --- ALTE AJUSTARI --- */
.navbar { background: white; border-bottom: 1px solid #eee; padding: 12px 0; }
.input-ron { position: relative; }
.input-ron::after { 
    content: "RON"; position: absolute; right: 15px; top: 50%; 
    transform: translateY(-50%); font-weight: 800; color: #ccc; font-size: 11px; 
}