﻿:root {
            --primary-color: #0f766e;
            --secondary-color: #0f766e;
            --dark-color: #0b3b36;
            --light-color: #f2f7f2;
            --border-color: #e4ebe4;
        }
        
        /* Footer Fix Styles */
        html, body {
            height: 100%;
        }
        /* Hero Section with Video Background */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b3b36 0%, #0f3d38 100%);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

/* Video Fallback - Better Design */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b3b36 0%, #0f3d38 100%);
    z-index: 1;
}

/* Animated Pattern for Fallback */
.video-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 42, 39, 0.7);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.min-vh-80 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

/* Search Box in Hero */
.search-box-hero {
    max-width: 600px;
}

.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: white;
}

.search-form .form-control {
    font-size: 1.1rem;
    padding-left: 0;
    border: none;
}

.search-form .form-control:focus {
    box-shadow: none;
    border: none;
}

.search-form .input-group-text {
    border: none;
    background: white;
}

.search-form .btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #0b3b36;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
}

.search-form .btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
}

/* Popular Searches */
.popular-searches {
    margin-top: 1.5rem;
}

.popular-searches a {
    transition: opacity 0.3s ease;
}

.popular-searches a:hover {
    opacity: 1 !important;
    text-decoration: underline !important;
}

/* Category Cards */
.category-card {
    border: 1px solid #e4ebe4;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #ffc107;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: #fff9e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #ffc107;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: #ffc107;
    color: white;
    transform: scale(1.1);
}

/* Step Cards */
.step-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #ffc107;
    color: #0b3b36;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    border: 3px solid #fff9e6;
}

/* Trust Stats */
.trust-stats {
    background: transparent;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0b3b36;
}

.stat-label {
    color: #5e6d55;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Buttons */
.btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #0b3b36;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #0b3b36;
}

/* Text Colors */
.text-warning {
    color: #ffc107 !important;
}

/* Ensure text is readable */
.hero-section .text-white {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-title {
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
/* Hero Section with Video Background */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b3b36 0%, #0f3d38 100%);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

/* Video Fallback - Better Design */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b3b36 0%, #0f3d38 100%);
    z-index: 1;
}

/* Animated Pattern for Fallback */
.video-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 42, 39, 0.7);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.min-vh-80 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

/* Search Box in Hero */
.search-box-hero {
    max-width: 600px;
}

.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: white;
}

.search-form .form-control {
    font-size: 1.1rem;
    padding-left: 0;
    border: none;
}

.search-form .form-control:focus {
    box-shadow: none;
    border: none;
}

.search-form .input-group-text {
    border: none;
    background: white;
}

.search-form .btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #0b3b36;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
}

.search-form .btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
}

/* Popular Searches */
.popular-searches {
    margin-top: 1.5rem;
}

.popular-searches a {
    transition: opacity 0.3s ease;
}

.popular-searches a:hover {
    opacity: 1 !important;
    text-decoration: underline !important;
}

/* Category Cards */
.category-card {
    border: 1px solid #e4ebe4;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #ffc107;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: #fff9e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #ffc107;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}
/* Custom styles for intl-tel-input */
    .iti {
        width: 100%;
    }
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags.png");
    }
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
        .iti__flag {
            background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags@2x.png");
        }
    }
    .iti__selected-flag {
        padding: 0 15px;
        border-radius: 8px 0 0 8px;
    }
    .iti__arrow {
        border-top: 4px solid #555;
    }

.category-card:hover .category-icon {
    background: #ffc107;
    color: white;
    transform: scale(1.1);
}

/* Step Cards */
.step-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #ffc107;
    color: #0b3b36;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    border: 3px solid #fff9e6;
}

/* Trust Stats */
.trust-stats {
    background: transparent;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0b3b36;
}

.stat-label {
    color: #5e6d55;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Buttons */
.btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #0b3b36;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #0b3b36;
}

/* Text Colors */
.text-warning {
    color: #ffc107 !important;
}

/* Ensure text is readable */
.hero-section .text-white {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-title {
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-form .input-group {
        border-radius: 12px;
        flex-direction: column;
    }
    
    .search-form .input-group-text {
        border-radius: 12px 12px 0 0;
    }
    
    .search-form .form-control {
        border-radius: 0;
    }
    
    .search-form .btn-warning {
        width: 100%;
        border-radius: 0 0 12px 12px;
    }
    
    .min-vh-80 {
        min-height: 70vh;
        padding: 2rem 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-form .input-group {
        border-radius: 12px;
        flex-direction: column;
    }
    
    .search-form .input-group-text {
        border-radius: 12px 12px 0 0;
    }
    
    .search-form .form-control {
        border-radius: 0;
    }
    
    .search-form .btn-warning {
        width: 100%;
        border-radius: 0 0 12px 12px;
    }
    
    .min-vh-80 {
        min-height: 70vh;
        padding: 2rem 0;
    }
}
        
        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        main {
            flex: 1;
        }
        
        .footer {
            margin-top: auto;
            background-color: var(--dark-color);
        }

        /* Header Styles */
        .navbar-brand {
            font-weight: 700;
            color: var(--secondary-color) !important;
            font-size: 1.8rem;
        }

        .nav-link {
            font-weight: 500;
            color: var(--dark-color) !important;
            padding: 0.5rem 1rem !important;
            width: max-content;
        }

        .nav-link:hover {
            color: var(--secondary-color) !important;
        }

        .btn-success {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
        }

        .btn-success:hover {
            background-color: #115e59;
            border-color: #115e59;
        }

        /* Hero Section */
        .hero-section {
            background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
            padding: 80px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .hero-title {
            font-size: 3rem;
            font-weight: 700;
            color: var(--dark-color);
            margin-bottom: 1.5rem;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: #ffffff;
            margin-bottom: 2rem;
        }

        /* Search Box */
        .search-box {
            background: white;
            border: 2px solid var(--border-color);
            border-radius: 50px;
            padding: 0.5rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }

        .search-input {
            border: none;
            outline: none;
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
            width: 100%;
            background: transparent;
        }

        .search-btn {
            background: var(--secondary-color);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 0.75rem 2rem;
            font-weight: 600;
        }

        /* Category Cards */
        .category-card {
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 2rem 1rem;
            text-align: center;
            transition: all 0.3s ease;
            background: white;
        }

        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-color: var(--secondary-color);
        }

        .category-icon {
            width: 60px;
            height: 60px;
            background: var(--light-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            color: var(--secondary-color);
            font-size: 1.5rem;
        }

        /* How it Works */
        .step-card {
            text-align: center;
            padding: 2rem 1rem;
        }

        .step-number {
            width: 40px;
            height: 40px;
            background: var(--secondary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-weight: bold;
        }

        /* Trust Indicators */
        .trust-stats {
            background: var(--light-color);
            border-radius: 12px;
            padding: 3rem 2rem;
            text-align: center;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--dark-color);
        }

        .stat-label {
            color: #5e6d55;
            font-weight: 500;
        }

        /* Project Cards */
        .project-card {
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
            background: white;
        }

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

        .skill-tag {
            background: var(--light-color);
            color: var(--dark-color);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.875rem;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
            display: inline-block;
        }

        .budget-badge {
            background: var(--secondary-color);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 600;
        }

        /* Freelancer Cards */
        .freelancer-card {
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            transition: all 0.3s ease;
            background: white;
        }

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

        .freelancer-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 1rem;
            border: 3px solid var(--secondary-color);
        }

        .rating-stars {
            color: #ffc107;
        }

        /* Toast Notification Styles (Keep your existing toast styles) */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            min-width: 350px;
        }
        
        .custom-toast {
            border: none;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            backdrop-filter: blur(10px);
            margin-bottom: 15px;
            overflow: hidden;
            animation: slideInRight 0.5s ease-out;
            border-left: 5px solid;
        }
        
        /* ... Keep your existing toast styles ... */
        
        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        @keyframes slideOutRight {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }
            
            .search-box {
                border-radius: 12px;
            }
            
            .search-btn {
                width: 100%;
                margin-top: 1rem;
            }
        }
        .bid-card {
        transition: transform 0.2s, box-shadow 0.2s;
        border: 1px solid #dee2e6;
    }

    .bid-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .bid-card.accepted {
        border-left: 4px solid #28a745 !important;
    }

    .bid-card.featured {
        border-left: 4px solid #ffc107 !important;
    }

    .proposal-content {
        max-height: 120px;
        overflow: hidden;
        position: relative;
    }

    .proposal-content.expanded {
        max-height: none;
    }

    .proposal-content::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 20px;
        background: linear-gradient(transparent, white);
    }

    .proposal-content.expanded::after {
        display: none;
    }

    .read-more-btn {
        position: absolute;
        bottom: 5px;
        right: 10px;
        z-index: 2;
        background: white;
        padding: 2px 8px;
        border-radius: 3px;
        font-size: 12px;
        text-decoration: none;
    }

    /* Status badges */
    .badge-viewed {
        background-color: #17a2b8;
        color: white;
    }

    .badge-not-viewed {
        background-color: #6c757d;
        color: white;
    }

    .badge-featured {
        background-color: #ffc107;
        color: #212529;
    }

    .badge-new {
        background-color: #28a745;
        color: white;
    }

    /* Freelancer avatar */
    .freelancer-avatar {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 3px solid #007bff;
    }

    /* Bid amount highlight */
    .bid-amount {
        font-size: 1.5rem;
        font-weight: bold;
        color: #28a745;
    }

    /* Delivery time */
    .delivery-time {
        font-size: 1.2rem;
        font-weight: bold;
        color: #007bff;
    }

    /* Action buttons */
    .action-buttons .btn {
        border-radius: 5px;
        font-weight: 500;
    }

    /* Skills tags */
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.25em 0.6em;
        margin: 0 0.2em 0.2em 0;
    }
    /* ====== HEADER OPTIMIZATION ====== */

/* Override Bootstrap container to be edge-to-edge */
.container-fluid.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Professional navbar styling */
.navbar {
    box-shadow: 0 2px 10px rgba(8, 42, 39, 0.08);
    padding: 0.5rem 0 !important;
}

.navbar-brand {
    font-size: 1.6rem;
    padding: 0;
    margin-right: 2rem;
}

.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.navbar-nav .nav-link {
    padding: 0.625rem 0.875rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #333 !important;
    font-weight: 500;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(15, 118, 110, 0.08);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(15, 118, 110, 0.15);
    color: #0f766e !important;
}

/* Dropdown menu styling */
.dropdown-menu {
    border: 1px solid #e4ebe4;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem !important;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1.25rem !important;
    font-weight: 500;
    border-radius: 6px;
    margin: 0.125rem 0.5rem;
    width: auto;
}

.dropdown-item:hover {
    background-color: rgba(15, 118, 110, 0.1);
}

/* User avatar */
.navbar-nav .nav-link img {
    border: 2px solid #0f766e;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover img {
    transform: scale(1.05);
    border-color: #115e59;
}

/* Messages icon */
.nav-link .fa-envelope {
    color: #555;
    font-size: 1.1rem;
}

.nav-link:hover .fa-envelope {
    color: #0f766e;
}

/* Sign Up button */
.btn-success {
    background: linear-gradient(135deg, #0f766e, #115e59);
    border: none;
    padding: 0.625rem 1.5rem !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 118, 110, 0.3);
    background: linear-gradient(135deg, #115e59, #0f6a00);
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .container-fluid.px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .navbar-collapse {
        background: white;
        border-top: 1px solid #e4ebe4;
        margin-top: 1rem;
        padding: 1rem 0;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        padding: 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* Desktop optimization */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        align-items: center;
    }
    
    .navbar-brand {
        margin-right: 3rem;
    }
    
    .container-fluid.px-4.px-xl-5 {
        max-width: 1900px;
        margin: 0 auto;
    }
}

/* Active state for current page */
.nav-link.active-page {
    color: #0f766e !important;
    font-weight: 600;
    background-color: rgba(15, 118, 110, 0.1);
}
/* Messages Dropdown Styling */
.messages-dropdown .dropdown-toggle::after {
    display: none !important;
}

.messages-dropdown .nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 12px !important;
}

.messages-dropdown .nav-link:hover {
    background-color: rgba(15, 118, 110, 0.1);
}

.messages-dropdown .fa-envelope {
    color: #555;
    transition: all 0.3s ease;
}

.messages-dropdown .nav-link:hover .fa-envelope {
    color: #0f766e;
    transform: scale(1.1);
}

/* Messages Dropdown Menu */
.messages-menu {
    border-radius: 12px !important;
    border: 1px solid #e4ebe4;
    overflow: hidden;
    transform: translateX(-50px) !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 8px !important;
}

.messages-menu .dropdown-header {
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Messages Container with Scroll */
.messages-container {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Message Items */
.message-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.message-item:hover {
    background-color: rgba(15, 118, 110, 0.05);
    border-left-color: #0f766e;
    text-decoration: none;
    transform: translateX(2px);
}
.message-item.unread:hover {
    background: linear-gradient(135deg, #e8f0fe 0%, #d9e6ff 100%) !important;
    border-left-color: #134e4a !important;
}
.message-item .rounded-circle {
    transition: all 0.3s ease;
}

.message-item.unread {
    background-color: rgba(102, 126, 234, 0.05);
}

.message-item .badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    min-width: 18px;
    font-weight: 600;
}
.message-item:hover .badge {
    transform: scale(1.1);
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.7);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(15, 118, 110, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
    }
}
.message-item.unread .rounded-circle {
    animation: pulse 2s infinite;
}

/* Custom scrollbar for messages container */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Smooth transitions */
.message-item,
.message-item *,
.message-item .rounded-circle,
.message-item h6,
.message-item .badge {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state when dropdown is open */
.messages-dropdown.show .message-item:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
}


/* Hover to show dropdown - Desktop */
@media (min-width: 992px) {
    .messages-dropdown .messages-menu {
        display: none !important;
        opacity: 0;
        transform: translateY(-10px) translateX(-50px) !important;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .messages-dropdown:hover .messages-menu,
    .messages-dropdown.show .messages-menu {
        display: block !important;
        opacity: 1;
        transform: translateY(0) translateX(-50px) !important;
        pointer-events: all;
    }
    
    .messages-dropdown .dropdown-toggle[data-bs-toggle="dropdown"] {
        cursor: pointer;
    }
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .messages-menu {
        width: 320px !important;
        max-height: 70vh !important;
        transform: translateX(-30px) !important;
        position: fixed !important;
        top: 60px !important;
        right: 15px !important;
    }
    
    .messages-container {
        max-height: calc(70vh - 130px) !important;
    }
    .message-item:hover .rounded-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3);
    }
    
    .message-item h6 {
        max-width: 140px !important;
    }
    .message-item:hover h6 {
    color: #0f766e !important;
    }

    
    .message-item small.text-truncate {
        max-width: 180px !important;
    }
    
    .message-item p.text-truncate {
        max-width: 200px !important;
    }
    
    .messages-dropdown .nav-link {
        padding: 8px !important;
    }
}

/* Text truncation */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown Footer */
.dropdown-footer {
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
}

/* Prevent body scroll when dropdown is open */
body.dropdown-open {
    overflow: hidden;
}

/* Adjust dropdown positioning for different screen heights */
@media (max-height: 700px) {
    .messages-menu {
        max-height: 70vh !important;
    }
    
    .messages-container {
        max-height: calc(70vh - 130px) !important;
    }
}

@media (max-height: 600px) {
    .messages-menu {
        max-height: 65vh !important;
    }
    
    .messages-container {
        max-height: calc(65vh - 130px) !important;
    }
    .sticky-header {
        position: sticky;
        top: 0;
        /* Optional: add styles for appearance */
        background-color: white;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}
