       /* Fonturi & culori */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f8fa;
    color: #333;
}

a {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

/* Header */
.zapp-header {
    background: linear-gradient(90deg, #cb0000, #d90000);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.zapp-logo {
    font-size: 1.5em;
    font-weight: bold;
}

.zapp-logo span {
    color: #ffdddd;
}

.zapp-nav a {
    margin-left: 20px;
}

/* Main layout */
.zapp-main {
    padding: 30px;
    max-width: 1100px;
    margin: auto;
}

/* Card profil */
.zapp-profil-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profil-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.profil-info h2 {
    margin: 0 0 5px;
}

.profil-info p {
    margin: 0 0 10px;
    color: #666;
}

.profil-progres {
    font-size: 0.9em;
}

.profil-progres .bar {
    height: 8px;
    background: #eee;
    border-radius: 6px;
    margin-top: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #38b000;
}

/* Carduri statistici */
.zapp-carduri {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.zapp-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.zapp-card.red { background-color: #fddede; color: #cb0000; }
.zapp-card.green { background-color: #d4f6e0; color: #1b9c59; }
.zapp-card.yellow { background-color: #fff5d9; color: #c98e00; }
.zapp-card.blue { background-color: #e5edff; color: #3b63c2; }

/* Tabel servicii */
.zapp-tabel h3 {
    margin-bottom: 15px;
}

.zapp-tabel table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.zapp-tabel th, .zapp-tabel td {
    padding: 15px;
    text-align: left;
}

.zapp-tabel thead {
    background-color: #f0f0f0;
}

.badge {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: bold;
}

.badge-active {
    background: #d4f6e0;
    color: #1b9c59;
}

/* Buton */
.btn {
    padding: 6px 14px;
    background-color: #cb0000;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn:hover {
    background-color: #a60000;
}

/* Footer */
.zapp-footer {
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
    color: #999;
}
/* === Zapp.AI Chat Style === */

#zapp-ai-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    max-height: 500px;
    z-index: 9999;
    font-size: 14px;
}

.zapp-chat-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 2px solid #cb0000;
}

.zapp-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
    height: 300px; /* <- forțează înălțimea fixă pentru scroll */
    max-height: 300px;
    border-bottom: 1px solid #eee;
    scroll-behavior: smooth;
}


.zapp-msg {
    margin-bottom: 12px;
    line-height: 1.4;
    word-wrap: break-word;
}

.zapp-msg strong {
    color: #cb0000;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

#zapp-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

#zapp-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-right: 10px;
    font-size: 14px;
}

#zapp-form button {
    background-color: #cb0000;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

#zapp-form button:hover {
    background-color: #a80000;
}

/* Scroll smooth */
.zapp-messages::-webkit-scrollbar {
    width: 6px;
}

.zapp-messages::-webkit-scrollbar-thumb {
    background-color: #cb0000;
    border-radius: 4px;
}
