/* Enhanced Search Styling */
.search-container {
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.search-inner {
    position: relative;
    width: 100%;
    overflow: visible;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.search-input {
    width: 100%;
    padding: 14px 45px 14px 50px;
    border-radius: 12px;
    border: none;
    background-color: white;
    font-size: 16px;
    color: #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 -2px 5px rgba(0, 0, 0, 0.02);
}

.search-input:focus {
    box-shadow:
        0 10px 25px rgba(65, 102, 212, 0.15),
        inset 0 -2px 5px rgba(92, 138, 231, 0.03);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #a0a0a0;
    font-weight: 400;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.search-input:focus::placeholder {
    opacity: 0.4;
    transform: translateX(5px);
}

.search-icon-container {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #1B71A1, #283779);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(5, 25, 154, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.search-icon {
    color: white;
    transform: scale(0.7);
}

.search-input:focus ~ .search-icon-container {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 10px rgba(92, 143, 231, 0.282);
}

.clear-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    color: #a0a0a0;
    cursor: pointer;
    background: #f5f5f5;
    border: none;
    outline: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 10;
}

.clear-button:hover {
    color: #e74c3c;
    background-color: #fcf1f0;
    transform: translateY(-50%) scale(1);
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.25);
}

/* Colorful glow effect when typing */
.search-input.has-content {
    box-shadow:
        0 10px 25px rgba(108, 92, 231, 0.15),
        inset 0 -2px 5px rgba(108, 92, 231, 0.03),
        0 0 15px rgba(108, 92, 231, 0.1);
}

.search-results-count {
    width: 100%;
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 13px;
    color: #1B71A1;
    text-align: center;
    font-weight: 500;
    background-color: #ffffff;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(27, 113, 161, 0.1);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.search-results-count.visible {
    opacity: 1;
    max-height: 100px; /* Adjust as needed */
    padding: 8px 16px;
}

.search-form:not(:focus-within) .search-icon:not(.searching) {
    animation: float 3s infinite ease-in-out;
}

.search-form:not(:focus-within):hover {
    animation: glow 2s infinite ease-in-out;
}

/* No results styling - Modern */
.no-results {
    padding: 50px 25px;
    background: linear-gradient(145deg, #ffffff, #f8faff);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08), 0 5px 15px rgba(0,0,0,0.04);
    transition: all 0.5s ease;
    border: none;
    animation: fadeInScale 0.6s cubic-bezier(0.26, 0.53, 0.74, 1.48) forwards;
}

.no-results i {
    color: #1B71A1;
    opacity: 0.6;
    margin-bottom: 20px;
    font-size: 3.5em;
    animation: floatIcon 3s infinite ease-in-out;
}

.no-results h3 {
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.6em;
}

.no-results .btn-primary {
    background: linear-gradient(135deg, #1B71A1, #283779);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(27, 113, 161, 0.2);
    position: relative;
    overflow: hidden;
}

.no-results .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.no-results .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(27, 113, 161, 0.4);
}

.no-results .btn-primary:hover::before {
    left: 100%;
}

/* Loading animation styles */
.search-loading {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.search-loading-text {
    color: #1B71A1;
    font-weight: 500;
    animation: pulse-text 1.5s infinite ease-in-out;
}
