.mobile-search-toggle {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: color;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.mobile-search-toggle:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.mobile-search-toggle i {
    font-size: 20px;
    color: gray !important;
}

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-search-overlay.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-search-container {
    background: white;
    width: 100%;
    max-width: 500px;
    margin: 20px auto auto;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
    max-height: 90vh;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mobile-search-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.mobile-search-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-search-close i {
    font-size: 20px;
}

.mobile-search-body {
    padding: 24px;
}

.mobile-search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 18px;
    font-size: 20px;
    color: #667eea;
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #2d3748;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
}

.search-input-wrapper input::placeholder {
    color: #a0aec0;
}

.search-input-wrapper .clear-search {
    position: absolute;
    right: 14px;
    background: #f56565;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-input-wrapper .clear-search:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

.search-input-wrapper .clear-search i {
    font-size: 16px;
}

.mobile-search-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #667eea;
    border-radius: 12px;
    background: white;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mobile-search-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mobile-search-btn:active {
    transform: translateY(0);
}

.mobile-search-btn i {
    font-size: 18px;
}

@media (min-width: 768px) {
    .mobile-search-toggle {
        display: none;
    }
}

@media (max-width: 576px) {
    .mobile-search-container {
        border-radius: 16px;
        margin: 10px;
    }
    
    .mobile-search-header {
        padding: 16px 20px;
    }
    
    .mobile-search-body {
        padding: 20px;
    }
    
    .search-input-wrapper input {
        padding: 14px 45px 14px 45px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .mobile-search-btn {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-search-overlay,
    .mobile-search-container,
    .mobile-search-close {
        animation: none;
    }
}
