.profile-header {
    position: relative;
    text-align: center;
}

.cover-photo {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border: 4px solid white;
}

.edit-avatar,
.edit-cover {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.nav-tabs .nav-link {
    font-weight: bold;
}

.card {
    margin-top: 20px;
}



.messages-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.contact-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.contact-list li img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-container {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.chat-box {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.chat-message {
    padding: 8px 12px;
    border-radius: 10px;
    margin: 10px 0;
    max-width: 80%;
    display: inline-block;
}
.sent {
    text-align: right;
    background: #d1e7dd;
    border-radius: 10px;
    padding: 5px 10px;
    margin: 5px;
}

.received {
    text-align: left;
    background: #f8d7da;
    border-radius: 10px;
    padding: 5px 10px;
    margin: 5px;
}

.chat-form {
    display: flex;
    margin-top: 10px;
}

.chat-form textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chat-form button {
    padding: 10px 15px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
}



/* Carduri pentru anunțuri */
.card {
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Iconițe și categorii */
.ad-item[data-category="services"] {
    border-left: 4px solid #007bff;
}

.ad-item[data-category="exclusive"] {
    border-left: 4px solid #28a745;
}

.ad-item[data-category="matrimonial"] {
    border-left: 4px solid #dc3545;
}

/* Paginare */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}


.conversation-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.conversation-item:hover,
.conversation-item.active {
    background: #007bff;
    color: white;
}

.profile-pic {
    width: 50px;
    /* ✅ Lățime fixă */
    height: 50px;
    /* ✅ Înălțime fixă */
    border-radius: 50%;
    /* 🔵 Poza devine rotundă */
    object-fit: cover;
    /* 🖼️ Evită deformarea imaginii */
    border: 2px solid #ddd;
    /* ✅ Adaugă un contur fin */
}

.user-info {
    display: flex;
    align-items: center;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.status {
    font-size: 12px;
    color: gray;
}

.reputation {
    font-size: 12px;
    color: gold;
    font-weight: bold;
}










/* CONTAINER GENERAL */
.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.custom-title {
    text-align: left;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* GRID FLEXIBIL */
.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Carduri flexibile */
    gap: 15px; /* Spațiere între carduri */
    justify-content: center;
    padding: 20px;
}

.custom-card {
    width: 260px; /* Ajustează lățimea fiecărui card */
    max-width: 100%; /* Previne depășirea containerului */
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}


.custom-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* IMAGINI STANDARDIZATE */
.custom-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
}

.custom-card-image img {
    width: 100%;
    height: 100%;
    object-fit: center; /* Afișează întreaga imagine fără să o taie */
    background-color: #f8f9fa; /* Adaugă un fundal deschis dacă imaginea nu acoperă tot */
}


/* CONTINUT CARD */
.custom-card-content {
    padding: 12px;
}

.custom-card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.custom-card-title a {
    text-decoration: none;
    color: #007bff;
}

.custom-card-title a:hover {
    text-decoration: underline;
}

.custom-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* DETALII ANUNȚ */
.custom-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

.custom-rating {
    color: #f39c12;
    font-weight: bold;
}

/* FOOTER */
.custom-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 10px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
}

.custom-category {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.custom-date {
    color: #333;
}

/* MESAJ FĂRĂ ANUNȚURI */
.custom-no-services {
    text-align: center;
    font-size: 16px;
    color: #999;
    margin-top: 20px;
}










.toast {
    background-color: #222;
    color: white;
    padding: 10px 15px;
    margin: 10px auto;
    width: fit-content;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.toast-success { background-color: #28a745; }
.toast-error { background-color: #dc3545; }
