﻿/* Custom CSS for Client Dashboard */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
/*    overflow-x: hidden;*/
}

/* Service Category Navigation */
.category-navigation-container {
    position: relative;
    padding: 15px 40px; /* Give space for arrows */
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    z-index:10;
    margin-top:3rem;
}

.service-categories-wrapper {
    position: relative;
    width: 100%;
   
}

/* Slider with improved scroll handling */
.service-categories-slider {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
    padding: 5px a0;
    position: relative;
}

/* Service Category Item styling */
.service-category-item {
    position: relative;
 /*   display: inline-flex !important;*/
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border: 0.5px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 5px;
    white-space: nowrap;
    z-index: 20; /* Base z-index */
}

    .service-category-item:hover {
        border-color: #14899a;
        box-shadow: 0 2px 8px rgba(29, 191, 115, 0.1);
    }

    .service-category-item.active {
        background-color: #14899a;
        color: white;
        border-color: #14899a;
    }

/* Dropdown icon */
.dropdown-icon {
    margin-top: 3px;
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

/* Subservices Popup styling */
.subservices-popup {
    position: absolute;
    top: 100%; /* Position below category item */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 250px;
    z-index: 9999; /* Very high z-index */
    padding: 15px;
    display: none;
    border: 1px solid #eaeaea;
    margin-top: 10px;
}

    /* Popup arrow/triangle */
    .subservices-popup:after {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid white;
    }

    /* Subservices list styling */
    .subservices-popup h5 {
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: 600;
        padding-bottom: 8px;
        border-bottom: 1px solid #f5f5f5;
    }

    .subservices-popup ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        max-height: 300px;
        overflow-y: auto;
    }

    .subservices-popup li {
        padding: 8px 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        border-radius: 4px;
        margin-bottom: 2px;
    }

        .subservices-popup li:hover {
            background-color: #f5f5f5;
            color: #14899a;
        }

/* Arrow button styles with better positioning */
.category-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex !important; /* Force display */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30; /* Higher than categories */
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    opacity: 1 !important; /* Force opacity */
}

.category-nav-prev {
    left: 5px;
}

.category-nav-next {
    right: 5px;
}

.category-nav-arrow:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-nav-arrow.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

/* Prevent collapsed margins */
.category-navigation-container:after {
    content: "";
    display: table;
    clear: both;
}

/* Service card styles */
.service-card, .consultant-card, .company-card {
    transition: all 0.3s ease;
    border: none;
}

    .service-card:hover, .consultant-card:hover, .company-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

/* Text truncation */
/*.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}*/

/* Section title styling */
.section-title {
    position: relative;
    padding-bottom: 10px;
}

    .section-title:after {
        content: '';
        position: absolute;
        width: 40px;
        height: 3px;
        background-color: #1dbf73;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

/* Search section styles */
.search-section {
    padding-top: 1.5rem !important;
}
    /*    padding-bottom: 1rem !important;

}*/

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.request-help-link {
    display: inline-block;
    padding: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .request-help-link:hover {
        transform: translateY(-2px);
    }

/* Section title styling */
.section-title {
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
    margin-bottom: 20px;
}

.text-center .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #14899a;
}

/* Card hover effects */
.consultant-card, .service-card, .company-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

    .consultant-card:hover, .service-card:hover, .company-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.07) !important;
    }

/* Consultant card styling */
.consultant-img img {
    border: 3px solid #0d6efd;
    padding: 3px;
    transition: transform 0.3s ease;
}

.consultant-card:hover .consultant-img img {
    transform: scale(1.05);
}

.consultant-services {
    min-height: 70px;
}


/* Rating stars */
.ratings {
    font-size: 1rem;
    display: inline-block;
}

/* Service card styling */
.service-card .card-title {
    font-weight: 600;
    color: #333;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em;
}

/* Modal content styling */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-radius: calc(0.5rem - 1px) calc(0.5rem - 1px) 0 0;
    background-color: #f8f9fa;
}

/* Badges styling */
.badge {
    font-weight: 500;
    padding: 0.5em 0.7em;
    border-radius: 50px;
}

/* Custom scrollbar for modals */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #9ea0a5;
}

    .modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background-color: #0d6efd;
        border-radius: 10px;
    }

.profile-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.company-logo-placeholder {
    width: 100px;
    height: 100px;
    object-fit: cover;
    background-color: #ccc;
}
/* Media queries for responsiveness */
@media (max-width: 992px) {
    .consultant-services {
        min-height: 75px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .consultant-services {
        min-height: auto;
    }
}


/*New*/
/* Enhanced service card styling */
.featured-services {
    position: relative;
}

.service-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.07) !important;
    }

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .service-icon i {
        font-size: 1.25rem;
    }

/* Subservices tags with proper wrapping */
.subservices-tags {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.5em 0.7em;
    border-radius: 50px;
    font-size: 0.75rem;
}

/* Maintain text-truncate-2 functionalities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em;
}
/* Add these styles to your client.css file */

/* Combined header styles */
.combined-header {
    padding: 15px 0;
    margin-bottom: 20px;
}

    /* Search input adjustments for the header row */
    .combined-header .search-container {
        margin: 0;
    }

    .combined-header .input-group {
        height: 45px;
    }

    .combined-header #searchConsultantsInput {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

    /* Breadcrumb adjustments */
    .combined-header .breadcrumb {
        margin-bottom: 0;
        padding: 0;
        background-color: transparent;
    }

/* Sort dropdown styling */
#sortConsultants {
    max-width: 200px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    height: 38px;
}

/* Card shadow and border effects */
.filter-card, .consultant-card-container {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .filter-card:hover, .consultant-card-container:hover {
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .filter-card .card-header {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        padding: 15px 20px;
    }

    .consultant-card-container .card-body {
        padding: 20px;
    }

    /* Section title in consultant container */
    .consultant-card-container .section-title {
        margin-bottom: 20px;
        padding-bottom: 10px;
        position: relative;
    }

        .consultant-card-container .section-title:after {
            content: '';
            position: absolute;
            width: 40px;
            height: 3px;
            background-color: #1dbf73;
            bottom: 0;
            left: 0;
            transform: none;
        }

        /* Clients My Appointment Page*/

.table th {
    background-color: #495057;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
}

.table td {
    vertical-align: middle;
    padding: 12px 8px;
    border-bottom: 1px solid #e9ecef;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

/* Upcoming appointment highlighting */
.table-warning {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

    .table-warning:hover {
        background-color: #ffeaa7 !important;
    }

/* Action buttons */
.btn-group .btn {
    margin: 0 2px;
    transition: all 0.2s ease;
}

    .btn-group .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

/* Status badges */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}
.gradient-text {
    background: linear-gradient(45deg, #14899a, #0b2f6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Quick actions card */
.bg-light {
    background-color: #e7f1f7 !important;
    color: #14899a !important;
}
.theme-gradient-btn {
    background: linear-gradient(45deg, #14899a, #0b2f6d) !important;
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 137, 154, 0.3);
}

/* DataTable customizations */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #6c757d;
    font-size: 0.875rem;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        color: #6c757d !important;
        border: 1px solid #dee2e6;
        margin: 0 2px;
        border-radius: 0.25rem;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background: #e9ecef !important;
            border-color: #adb5bd;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button.current {
            background: #007bff !important;
            border-color: #007bff;
            color: white !important;
        }

/* Empty state styling */
.dataTables_empty {
    text-align: center;
    padding: 40px !important;
    color: #6c757d;
}

/* Modal customizations */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem 0.5rem 0 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .btn-group .btn {
            font-size: 0.75rem;
            padding: 4px 8px;
        }

    .table td {
        padding: 8px 4px;
        font-size: 0.85rem;
    }

    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* Dropdown customization */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* Search input styling */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin-left: 0.5rem;
}

    .dataTables_wrapper .dataTables_filter input:focus {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

/* Custom appointment status colors */
tr[data-status="40"] {
    opacity: 0.7;
    background-color: #fff5f5;
}

tr[data-status="30"] {
    background-color: #f0fff4;
}

tr[data-status="10"] {
    background-color: #fffbf0;
}

/* Animation for rows */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
} 

.table tbody tr {
    animation: slideInFromLeft 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .combined-header {
        padding: 10px 0;
    }

        .combined-header .col-md-3,
        .combined-header .col-md-6 {
            margin-bottom: 10px;
        }

        .combined-header .d-flex.justify-content-end {
            justify-content: flex-start !important;
        }
}

@media (max-width: 767px) {
    .combined-header #sortConsultants {
        width: 100%;
        max-width: 100%;
    }

    .combined-header .breadcrumb {
        margin-bottom: 10px;
    }
}

