/* Search Container */
.search-container {
    margin-bottom: 20px; /* Space below the search input */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Search Input with Glowing Effect */
#search-input {
    width: 100%;
    max-width: 600px;
    padding: 14px; /* Increased padding for better usability */
    font-size: 1.1em; /* Bigger for readability */
    border: 2px solid #ff4757; /* Highlighted border color */
    border-radius: 8px; /* Smooth rounded corners */
    background-color: #333; /* Background color for contrast */
    color: #fff; /* Text color */
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; /* Smooth transition */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow */
}

/* Cool Glow Animation on Focus */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 10px #ff4757, 0 0 20px #e50914; }
    50% { box-shadow: 0 0 15px #ff6b81, 0 0 30px #ff4757; }
}

#search-input:focus {
    background-color: #444; /* Darker background on focus */
    outline: none; /* Remove outline */
    border-color: #ff4757; /* Change border color on focus */
    animation: glowPulse 1.5s ease-in-out infinite;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Make sure it's on top */
}

/* Enhanced Loading Bar with Glowing Trail */
.loading-bar {
    width: 80%;
    max-width: 600px;
    height: 6px;
    background: linear-gradient(90deg, #ff4757, #e50914, #ff4757);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.loading-bar::before {
    content: "";
    position: absolute;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #e50914, transparent);
    animation: loading 1.5s ease-in-out infinite;
}

/* Loading Animation Keyframes */
@keyframes loading {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(50%); }
    100% { transform: translateX(200%); }
}
