﻿
/* ========================================
   Global Background - Soft Blue-Gray Tint
   ======================================== */
body {
    background-color: #f4f6f8 !important;
}

.main-wrapper {
    background-color: #f4f6f8;
    min-height: calc(100vh - 200px);
}

/* Cards stay white for contrast */
.card {
    background-color: #ffffff;
}

/* Section backgrounds */
.section {
    background-color: transparent;
}

/* Header stays white/clean */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e8ecef;
}

/* Category filter bar - slightly darker than page */
.category-filter-bar {
    background: #eaecef;
}

/* Provider compact cards - white for contrast */
.provider-card-compact {
    background: #ffffff;
}

/* Form inputs - white background */
.form-control,
.form-select {
    background-color: #ffffff;
}
/* skilld.pro Brand Colors - Military Green */
:root {
    --primary-color: #5A6F3C;
    --primary-hover: #4A5C32;
}

/* Override all pink/magenta colors */
.btn-primary,
.bg-primary {
    background-color: #5A6F3C !important;
    border-color: #5A6F3C !important;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #4A5C32 !important;
        border-color: #4A5C32 !important;
    }

.btn-outline-primary {
    color: #5A6F3C !important;
    border-color: #5A6F3C !important;
}

    .btn-outline-primary:hover {
        background-color: #5A6F3C !important;
        border-color: #5A6F3C !important;
        color: #fff !important;
    }

.text-primary {
    color: #5A6F3C !important;
}

a {
    color: #5A6F3C;
}

    a:hover {
        color: #4A5C32;
    }

/* Header styles */
.header-navbar-rht .nav-link {
    color: #5A6F3C !important;
}

.navbar-brand span,
.menu-logo span {
    color: #5A6F3C !important;
}

/* Form focus states */
.form-control:focus {
    border-color: #5A6F3C;
    box-shadow: 0 0 0 0.2rem rgba(90, 111, 60, 0.25);
}

/* Badge colors */
.badge.bg-primary {
    background-color: #5A6F3C !important;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
}

    .hero-section h1 {
        font-size: 2.75rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 1rem;
    }

    .hero-section p {
        font-size: 1.25rem;
        color: #6c757d;
        margin-bottom: 2rem;
    }

/* ========================================
   Section Styling
   ======================================== */
.section {
    padding: 60px 0;
}

.section-heading {
    margin-bottom: 40px;
}

    .section-heading h2 {
        font-weight: 700;
        color: #1a1a1a;
    }

/* ========================================
   How It Works
   ======================================== */
.work-box {
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

    .work-box:hover {
        transform: translateY(-5px);
    }

.work-icon span {
    width: 80px;
    height: 80px;
    background: rgba(90, 111, 60, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.work-icon i {
    font-size: 32px;
    color: #5A6F3C;
}

.work-box h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* ========================================
   Why Choose
   ======================================== */
.why-choose {
    background: #fff;
}

.why-choose-text h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.why-choose-text p {
    color: #6c757d;
    margin-bottom: 0;
}

/* ========================================
   Categories
   ======================================== */
.category-card {
    transition: all 0.3s ease;
    text-decoration: none;
    color: #1a1a1a;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
        color: #5A6F3C;
    }

    .category-card h6 {
        margin-bottom: 0;
        font-weight: 600;
    }

.category-icon i {
    color: #5A6F3C !important;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, #5A6F3C 0%, #4A5C32 100%);
    padding: 60px 0;
}

    .cta-section h2 {
        color: #fff;
        font-weight: 700;
    }

    .cta-section p {
        color: rgba(255,255,255,0.9);
        margin-bottom: 0;
    }

    .cta-section .btn-primary {
        background: #fff !important;
        color: #5A6F3C !important;
        border: none !important;
    }

        .cta-section .btn-primary:hover {
            background: #f8f9fa !important;
            color: #4A5C32 !important;
        }

/* ========================================
   Footer
   ======================================== */
.footer,
footer.footer,
footer {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
}

.footer-bottom {
    padding: 20px 0;
    background: #1a1a1a !important;
}

.copyright {
    background: #1a1a1a !important;
}

.copyright-text p {
    color: rgba(255,255,255,0.7);
}

.policy-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

    .policy-menu li a {
        color: #adb5bd !important;
        text-decoration: none;
    }

        .policy-menu li a:hover {
            color: #fff !important;
        }
/* ========================================
   Provider Cards
   ======================================== */
.provider-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .provider-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    }

.provider-avatar .avatar-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(90, 111, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .provider-avatar .avatar-placeholder i {
        font-size: 24px;
        color: #5A6F3C;
    }

.provider-card .badge.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
}

/* Filter card */
.card-header h5 {
    font-size: 1rem;
    font-weight: 600;
}
/* ========================================
   Page minimum height
   ======================================== */
.main-wrapper {
    min-height: calc(100vh - 200px);
}

/* ========================================
   Provider Details Page
   ======================================== */
.provider-profile-photo .profile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.avatar-placeholder-lg {
    width: 120px;
    height: 120px;
    background: rgba(90, 111, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .avatar-placeholder-lg i {
        font-size: 48px;
        color: #5A6F3C;
    }

.provider-logo {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
}

/* Gallery */
.gallery-item {
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

    .gallery-img:hover {
        transform: scale(1.05);
    }

/* Reviews */
.review-item p {
    color: #495057;
    line-height: 1.6;
}

/* ========================================
   Reviews Styling
   ======================================== */
.review-quote {
    font-size: 2rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: #5A6F3C;
}

.review-text {
    color: #495057;
    line-height: 1.7;
    font-size: 0.95rem;
}

.review-author {
    font-size: 0.9rem;
}
/* ========================================
   Provider Details Sidebar Shading
   ======================================== */
.col-lg-4 .card {
    background-color: #f8f9fa;
}

.col-lg-4 .card-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef;
}

/* Keep main content cards white */
.col-lg-8 .card {
    background-color: #fff;
}

.col-lg-8 .card-header {
    background-color: #fff !important;
}

/* ========================================
   Provider Details Sidebar Shading
   ======================================== */
.col-lg-4 .card {
    background-color: #f8f9fa;
    border: 1px solid #d1d5db;
}

.col-lg-4 .card-header {
    background-color: #f1f3f5 !important;
    border-bottom: 1px solid #d1d5db;
}

/* Keep main content cards white with subtle border */
.col-lg-8 .card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
}

.col-lg-8 .card-header {
    background-color: #fff !important;
    border-bottom: 1px solid #e9ecef;
}
/* ========================================
   Provider Details Card Shading
   ======================================== */
/* Sidebar cards */
.col-lg-4 .card {
    background-color: #f8f9fa;
    border: 1px solid #d1d5db;
}

.col-lg-4 .card-header {
    background-color: #f1f3f5 !important;
    border-bottom: 1px solid #d1d5db;
}

/* Main content cards */
.col-lg-8 .card {
    background-color: #f8f9fa;
    border: 1px solid #d1d5db;
}

.col-lg-8 .card-header {
    background-color: #f1f3f5 !important;
    border-bottom: 1px solid #d1d5db;
}

/* ========================================
   Inbox & Messaging
   ======================================== */
.avatar-sm {
    width: 36px;
    height: 36px;
}

.avatar-placeholder-sm {
    width: 36px;
    height: 36px;
    background: rgba(90, 111, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .avatar-placeholder-sm i {
        font-size: 16px;
        color: #5A6F3C;
    }

.table-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(90, 111, 60, 0.05);
}

/* ========================================
   Chat & Messaging
   ======================================== */
.chat-body {
    background: #f8f9fa;
    padding: 1.5rem;
}

.message-item .bg-primary {
    background-color: #5A6F3C !important;
}

.message-item .bg-light {
    background-color: #fff !important;
    border: 1px solid #e9ecef;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    background: rgba(90, 111, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .avatar-placeholder i {
        font-size: 20px;
        color: #5A6F3C;
    }

/* ========================================
   Footer - FORCE DARK BACKGROUND
   ======================================== */
footer.footer,
.footer,
.footer-bottom,
.footer .copyright {
    background: #2d3436 !important;
    background-color: #2d3436 !important;
}

    .footer .copyright-text p,
    .footer p {
        color: #b2bec3 !important;
    }

    .footer .policy-menu li a {
        color: #b2bec3 !important;
    }

        .footer .policy-menu li a:hover {
            color: #ffffff !important;
        }

/* ========================================
   Mobile Responsiveness Fixes
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }

        .hero-section h1 {
            font-size: 1.75rem;
        }

        .hero-section p {
            font-size: 1rem;
        }

    .section {
        padding: 40px 0;
    }

    .work-box {
        margin-bottom: 15px;
    }

    .policy-menu {
        justify-content: center;
        margin-top: 10px;
    }

    .copyright-text {
        text-align: center;
    }

    /* Stack buttons on mobile */
    .search-box .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }

        .search-box .btn.ms-2 {
            margin-left: 0 !important;
        }

    /* Provider cards full width on mobile */
    .provider-card {
        margin-bottom: 15px;
    }

    /* Conversation messages */
    .message-item .d-inline-block {
        max-width: 90% !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}
/* ========================================
   Category Filter Bar
   ======================================== */
.category-filter-bar {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    text-decoration: none;
    color: #495057;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .category-chip:hover {
        border-color: #5A6F3C;
        color: #5A6F3C;
        background: rgba(90, 111, 60, 0.05);
    }

    .category-chip.active {
        background: #5A6F3C;
        border-color: #5A6F3C;
        color: #fff;
    }

    .category-chip i {
        font-size: 16px;
    }

/* ========================================
   Location Filter Row
   ======================================== */
.location-filter-row {
    text-align: center;
}

    .location-filter-row .form-select-sm {
        min-width: 150px;
    }

/* ========================================
   Compact Provider Cards
   ======================================== */
.provider-card-compact {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.2s ease;
}

    .provider-card-compact:hover {
        border-color: #5A6F3C;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

.provider-avatar-sm {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

    .provider-avatar-sm img {
        width: 48px;
        height: 48px;
        object-fit: cover;
    }

    .provider-avatar-sm .avatar-placeholder-sm {
        width: 48px;
        height: 48px;
    }

.min-width-0 {
    min-width: 0;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ========================================
   Text truncation helper
   ======================================== */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Checkbox Styling - Force Override TruelySell
   ======================================== */
input[type="checkbox"].form-check-input,
.form-check-input[type="checkbox"] {
    width: 1.2em !important;
    height: 1.2em !important;
    border: 2px solid #6c757d !important;
    border-radius: 0.25em !important;
    background-color: #fff !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    position: relative !important;
}

    input[type="checkbox"].form-check-input:checked,
    .form-check-input[type="checkbox"]:checked {
        background-color: #5A6F3C !important;
        border-color: #5A6F3C !important;
    }

        input[type="checkbox"].form-check-input:checked::after,
        .form-check-input[type="checkbox"]:checked::after {
            content: '' !important;
            position: absolute !important;
            left: 5px !important;
            top: 2px !important;
            width: 5px !important;
            height: 10px !important;
            border: solid white !important;
            border-width: 0 2px 2px 0 !important;
            transform: rotate(45deg) !important;
        }

    input[type="checkbox"].form-check-input:focus,
    .form-check-input[type="checkbox"]:focus {
        border-color: #5A6F3C !important;
        outline: none !important;
        box-shadow: 0 0 0 0.2rem rgba(90, 111, 60, 0.25) !important;
    }

/* Switch toggle */
.form-switch .form-check-input {
    width: 2.5em !important;
    height: 1.25em !important;
    border-radius: 2em !important;
}

.form-switch .form-check-input:checked {
    background-color: #5A6F3C !important;
    border-color: #5A6F3C !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

/* ============================================
   Provider Sidebar Navigation
   ============================================ */

.provider-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-link {
    color: #555;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.sidebar-link:hover {
    background-color: #f0f0f0;
    color: #333;
}

.sidebar-link.active {
    background-color: #5A6F3C;
    color: #fff !important;
}

.sidebar-link.active:hover {
    background-color: #4d5f33;
}

.sidebar-link i {
    width: 18px;
    height: 18px;
}

/* ============================================
   Message Bubble Styles
   ============================================ */

.msg-sent {
    background-color: #5A6F3C;
    color: #fff;
}

.msg-received {
    background-color: #f1f3f5;
    color: #333;
}
        /* ========================================
   Search Bar - Provider Search (Task 5)
   ======================================== */
        .search-bar .input-group {
            border-radius: 25px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

            .search-bar .input-group .input-group-text {
                border: 1px solid #e0e0e0;
                border-right: none;
                padding-left: 16px;
            }

            .search-bar .input-group .form-control {
                border: 1px solid #e0e0e0;
                border-left: none;
                border-right: none;
                font-size: 0.9rem;
            }

                .search-bar .input-group .form-control:focus {
                    box-shadow: none;
                    border-color: #e0e0e0;
                }

            .search-bar .input-group .btn {
                border-radius: 0 25px 25px 0;
                padding: 8px 20px;
                font-size: 0.9rem;
            }
        /* Category chip - matched highlight (fuzzy search hit) */
        .category-chip.matched {
            border-color: #5A6F3C;
            color: #5A6F3C;
            background: rgba(90, 111, 60, 0.08);
            font-weight: 600;
        }
        /* ========================================
   Search Bar - Provider Search (Task 5)
   ======================================== */
        .search-bar .input-group {
            border-radius: 25px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

            .search-bar .input-group .input-group-text {
                border: 1px solid #e0e0e0;
                border-right: none;
                padding-left: 16px;
            }

            .search-bar .input-group .form-control {
                border: 1px solid #e0e0e0;
                border-left: none;
                border-right: none;
                font-size: 0.9rem;
            }

                .search-bar .input-group .form-control:focus {
                    box-shadow: none;
                    border-color: #e0e0e0;
                }

            .search-bar .input-group .btn {
                border-radius: 0 25px 25px 0;
                padding: 8px 20px;
                font-size: 0.9rem;
            }
        /* Category chip - matched highlight (fuzzy search hit) */
        .category-chip.matched {
            border-color: #5A6F3C;
            color: #5A6F3C;
            background: rgba(90, 111, 60, 0.08);
            font-weight: 600;
        }
        /* ========================================
   "+X more" button & Expanded Panel (Task 7+8)
   ======================================== */
        .more-chip {
            cursor: pointer;
            border-style: dashed !important;
            color: #5A6F3C !important;
        }

            .more-chip:hover {
                background: rgba(90, 111, 60, 0.08) !important;
                border-color: #5A6F3C !important;
            }

        .expanded-categories {
            margin-top: 15px;
            padding: 20px;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }

        .category-group {
            margin-bottom: 12px;
        }

            .category-group:last-child {
                margin-bottom: 0;
            }

        .category-group-label {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #6c757d;
            margin-bottom: 8px;
            padding-bottom: 4px;
            border-bottom: 1px solid #f0f0f0;
        }

        .category-chip-sm {
            padding: 5px 12px !important;
            font-size: 0.8rem !important;
        }

            .category-chip-sm i {
                font-size: 13px !important;
            }
        /* ========================================
   Location Filter - County/City (Task 6)
   ======================================== */
        .location-filter-row .form-label {
            font-size: 0.75rem;
            margin-bottom: 2px;
        }

        .location-filter-row .form-select-sm {
            min-width: 160px;
            font-size: 0.85rem;
        }

        .location-filter-row select:disabled,
        .location-filter-row input:disabled {
            background-color: #f5f5f5;
            cursor: not-allowed;
            opacity: 0.6;
        }
        /* ========================================
   Provider Count Badge (Task 9)
   ======================================== */
        .category-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 20px;
            height: 20px;
            padding: 0 5px;
            border-radius: 10px;
            background: rgba(90, 111, 60, 0.12);
            color: #5A6F3C;
            font-size: 0.7rem;
            font-weight: 700;
            line-height: 1;
        }

        .category-chip.active .category-count {
            background: rgba(255, 255, 255, 0.25);
            color: #fff;
        }
        /* Dim categories with zero providers */
        .category-chip.empty-category {
            opacity: 0.45;
            pointer-events: none;
        }

            .category-chip.empty-category .category-count {
                background: rgba(0, 0, 0, 0.06);
                color: #999;
            }
        /* ========================================
   Near Me Button (Task 61)
   ======================================== */
        #nearMeBtn {
            border-color: #e0e0e0;
            color: #5A6F3C;
            padding: 0.25rem 0.5rem;
        }

            #nearMeBtn:hover:not(:disabled) {
                background: rgba(90, 111, 60, 0.08);
                border-color: #5A6F3C;
                color: #5A6F3C;
            }

            #nearMeBtn:disabled {
                opacity: 0.4;
                cursor: not-allowed;
            }
        /* Hide the mobile menu wrapper on desktop   nav handled by header-navbar-rht */
        @media (min-width: 992px) {
            .main-menu-wrapper {
                display: none !important;
            }
        }
        /* Show it on mobile as slide-out panel */
        @media (max-width: 991.98px) {
            .main-menu-wrapper {
                display: block !important;
                position: fixed;
                top: 0;
                left: -260px;
                width: 260px;
                height: 100%;
                background: #fff;
                z-index: 9999;
                overflow-y: auto;
                transition: left 0.3s ease;
            }
            /* When open (JS adds slide-nav class to body) */
            .slide-nav .main-menu-wrapper {
                left: 0;
            }
        }
        /* ========================================
   Nav Logo Size Override
   ======================================== */
        .navbar-brand.logo,
        .navbar-brand.logo-small,
        .menu-logo {
            height: auto !important;
            padding: 8px 0 !important;
            display: flex !important;
            align-items: center !important;
        }

            .navbar-brand.logo img,
            .navbar-brand.logo-small img,
            .menu-logo img {
                height: 52px !important;
                width: auto !important;
                max-height: none !important;
            }
        /* ========================================
   Nav Logo Size Override v2 — target all
   constraining elements including header
   ======================================== */
        .header .header-nav,
        .header .navbar {
            min-height: 80px !important;
        }

        .navbar-brand,
        .navbar-brand.logo,
        .navbar-brand.logo-small,
        a.navbar-brand.logo,
        a.navbar-brand.logo-small {
            height: auto !important;
            min-height: 80px !important;
            display: flex !important;
            align-items: center !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
        }

            .navbar-brand img,
            .navbar-brand.logo img,
            .navbar-brand.logo-small img,
            a.navbar-brand.logo img,
            a.navbar-brand.logo-small img,
            .menu-logo img {
                height: 68px !important;
                width: auto !important;
                max-height: 68px !important;
                min-height: 68px !important;
            }
