﻿.search-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15), 0 4px 10px -4px rgba(0, 0, 0, 0.1);
    position: relative;
    min-width: 300px;
}

    .search-wrapper:focus-within {
        border-color: rgba(8, 105, 115, 0.3);
        box-shadow: 0 10px 35px -10px rgba(8, 105, 115, 0.25), 0 4px 10px -4px rgba(0, 0, 0, 0.1);
    }

.search-input {
    border: none !important;
    background: transparent !important;
    padding: 0.5rem 1rem;
    flex: 1;
    order: 2;
}

    .search-input:focus {
        box-shadow: none;
        border: none;
        background: transparent;
    }

.search-input-container {
    position: relative;
    flex: 1;
    order: 2;
    display: flex;
    align-items: center;
}

.search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .search-clear:hover {
        color: #64748b;
    }

/* Search button positioning */
.search-wrapper button {
    order: 1;
    border: none !important;
    background: transparent !important;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.search-wrapper button:hover {
    background: rgba(8, 105, 115, 0.1) !important;
}

@media (max-width: 576px) {
    .search-input {
        border: 2px solid #e2e8f0 !important;
        border-radius: 1rem;
        background: transparent;
        padding: 0.5rem 1rem;
        flex: 1;
        height: 4rem;
    }
}

/* Styles globaux pour les barres de recherche arrondies */
.search-input-group {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.search-input-group .input-group-text {
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
    background-color: #f8f9fa !important;
    padding: 0.75rem 1rem !important;
}

.search-input-group .form-control {
    border-radius: 0 8px 8px 0 !important;
    border-left: none !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.search-input-group .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
    border-color: #86b7fe !important;
}

.search-input-group .input-group-text:focus-within {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

/* Styles pour les dropdowns de recherche arrondis */
.search-status-select {
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    padding: 0.75rem 1rem !important;
}

.search-status-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
    border-color: #86b7fe !important;
}


/* =========================
   MOBILE SEARCH BAR
   ========================= */

.mobile-search-bar .input-group {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mobile-search-bar .input-group-text {
    border: none;
    background: transparent;
    padding-left: 1rem;
}

.mobile-search-bar .form-control {
    border: none;
    background: transparent;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
}

    .mobile-search-bar .form-control:focus {
        box-shadow: none;
        outline: none;
    }

    .mobile-search-bar .form-control::placeholder {
        color: #adb5bd;
    }

.mobile-search-bar .btn {
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    color: #6c757d;
}

    .mobile-search-bar .btn:hover {
        color: #dc3545;
        background: transparent;
    }