body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
}

.welcome {
    position: absolute;
    top: 20px;
    left: 20px;
    font-weight: bold;
}

.login-container {
    background-color: #ffffff;
    border-radius: 50px;
    padding: 20px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 60vw; /* 50% of viewport width */
    max-width: 100%;
}

.search-container {
    top: 150px;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 20px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 80vw; /* 50% of viewport width */
    max-width: 100%;
}
.search-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
    .login-container,
    .search-container {
        width: 90vw;
        padding: 15px 20px;
    }

    .form-control.search-input {
        font-size: 0.9rem;
    }
}


.form-control.search-input {
    border: none;
    background: transparent;
    padding-left: 40px;
    height: 50px;
    font-size: 1rem;
}

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

.btn-search {
    background-color: #007bff;
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    border: none;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.error-box {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #f8d7da;
    color: #721c24;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
}

/* Make results look like a dropdown */
#live-results {
    position: absolute;
    top: 100%; /* place directly below input */
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
}

/* Optional: style result items if your PHP returns <li> */
#live-results ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#live-results li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

#live-results li:hover {
    background-color: #f8f9fa;
}
#live-results .loading {
    padding: 10px;
    color: #888;
    font-style: italic;
}
#live-results .no-results {
    padding: 10px;
    color: #888;
}
