/* Service Image Styling */
.service-image-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-container-large {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f8f9fa;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
    transition: transform 0.3s ease;
    padding: 5px;
    max-height: 250px;
}

/* Optional: Add hover effect */
.service-image-container:hover .service-image,
.service-image-container-large:hover .service-image {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-image-container {
        height: 200px;
    }

    .service-image-container-large {
        height: 300px;
        max-width: 100%;
    }

    .service-image {
        max-height: 200px;
    }
}

/* Image placeholder styling */
.service-image-container::before,
.service-image-container-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    z-index: -1;
}

/* Specific styles for index page cards */
.card .service-image-container {
    height: 200px;
    border-radius: 8px;
}

.card .service-image {
    max-height: 200px;
    object-fit: contain;
}

/* User Avatar Styling */
.user-avatar {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-header.color-primary {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-bottom: 1px solid #eee;
}

.card-header a {
    color: inherit;
    transition: color 0.3s ease;
}

.card-header a:hover {
    color: #696cff;
}

.service-title {
    font-size: 1.1rem;
    color: #566a7f;
}

/* Service Card Enhancements */
.service-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.service-card .card-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    padding: 1rem 1.5rem;
}

.service-meta {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-meta i {
    color: #696cff;
    font-size: 1.2rem;
}

.service-price {
    font-weight: 600;
    color: #566a7f;
}

/* Reviews Section Enhancement */
.reviews-section {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.review-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.review-item:hover {
    background-color: #f8f9fa;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-content {
    flex: 1;
}

.review-rating {
    color: #ffc107;
    margin: 0.5rem 0;
}

.review-text {
    color: #697a8d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Category Badge Enhancement */
.category-badge {
    background: linear-gradient(45deg, #696cff, #8789ff);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(105, 108, 255, 0.2);
}

/* Service Description Enhancement */
.service-description {
    line-height: 1.8;
    color: #566a7f;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Chat Avatar Styling */
.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.avatar.avatar-online::after {
    background-color: #71dd37;
    box-shadow: 0 0 0 2px #fff;
}

.chat-contact-name {
    color: #566a7f;
    font-weight: 500 !important;
}

.chat-contact-status {
    color: #697a8d;
    font-size: 0.85rem;
}

/* تنسيقات البحث */
.search-input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    z-index: 1;
}

.search-input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
    height: 40px;
}

.search-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
}

.search-btn i {
    font-size: 0.875rem;
}

/* تنسيقات القوائم المنسدلة */
.form-select {
    height: 40px;
    border-radius: 0.375rem;
    border: 1px solid #d9dee3;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    background-color: #fff;
}

/* تحسينات عامة */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 0.25rem 1rem rgba(161, 172, 184, 0.45);
}

.card-body {
    padding: 1.5rem;
}

.row {
    margin: 0;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .search-input-group {
        margin-bottom: 1rem;
    }

    .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* تنسيقات الأوفرلاي والأكورديون */
.search-accordion {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    z-index: 1001;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    visibility: hidden;
}

.search-accordion.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.search-accordion .card {
    margin: 0;
    border: none;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* تنسيقات الأوفرلاي */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.show {
    opacity: 1;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .search-accordion {
        left: 0;
        right: 0;
        margin-top: 0;
    }

    .search-accordion .card {
        border-radius: 0;
    }
}

/* تنسيقات زر البحث والأزرار الأخرى */
.navbar-nav .nav-item .nav-link.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: #697a8d;
    background: transparent;
}

.navbar-nav .nav-item .nav-link.btn-icon:hover {
    background-color: rgba(105, 108, 255, 0.1);
    color: #696cff;
}

.navbar-nav .nav-item .nav-link.btn-icon i {
    font-size: 1.375rem;
}

/* تنسيقات التاب */
.search-accordion .nav-tabs {
    border-bottom: 1px solid #eee;
    margin: -1rem -1rem 1rem;
    padding: 0.5rem 1rem 0;
}

.search-accordion .nav-link {
    border: none;
    padding: 0.75rem 1.25rem;
    color: #697a8d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-accordion .nav-link:hover {
    color: #696cff;
}

.search-accordion .nav-link.active {
    color: #696cff;
    background: transparent;
    border-bottom: 2px solid #696cff;
}
