/* style.css extracted from index.html */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: url('/static/background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #f1f1f1;
}
.overlay {
    min-height: 100vh;
    background: rgba(20, 24, 31, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}
.container {
    max-width: 1200px;
    width: 95%;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.title {
    font-size: 2.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 32px;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.search-card {
    background: rgba(34, 40, 49, 0.7);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 32px 32px 24px 32px;
    width: 100%;
    max-width: 520px;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}
label {
    font-size: 1.08rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #e1e1e1;
    letter-spacing: 0.5px;
}
.required {
    color: #e26f2e;
    margin-left: 2px;
    font-size: 1rem;
}
input[type="text"], input[type="number"], select {
    padding: 11px 14px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #f1f1f1;
    font-size: 1.05rem;
    outline: none;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
input[type="text"]:focus, input[type="number"]:focus, select:focus {
    background: rgba(255,255,255,0.16);
}
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='16' height='16' xmlns='http://www.w3.org/2000/svg'><path fill='%23f1f1f1' d='M4 6l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}
option{
    background-color: #222831;
}
input[type="checkbox"] {
    accent-color: #007bff;
    width: 18px;
    height: 18px;
    margin: 0;
}
.button-group {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    justify-content: center;
}
button {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    outline: none;
}
.search-btn {
    background: #e26f2e;
}
.search-btn:hover {
    background: #ff8c42;
    box-shadow: 0 4px 16px rgba(226,111,46,0.18);
    transform: translateY(-2px) scale(1.03);
}
.clear-btn {
    background: #4f5eac;
}
.clear-btn:hover {
    background: #6c7ae0;
    box-shadow: 0 4px 16px rgba(79,94,172,0.18);
    transform: translateY(-2px) scale(1.03);
}
.tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    background: #e26f2e;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.98rem;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(226,111,46,0.13);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
}
.form-group.error .tooltip {
    opacity: 1;
    pointer-events: auto;
}
.results-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background: rgba(34, 40, 49, 0.7);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.27);
    padding: 28px 18px 24px 18px;
    display: none;
    flex-direction: column;
    align-items: center;
    min-height: 120px;
    position: relative;
}
.spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}
.spinner:after {
    content: "";
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid #007bff;
    border-top: 4px solid #e1e1e1;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.error-message {
    color: #ff4d4f;
    background: rgba(255,77,79,0.08);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 1.08rem;
    margin: 18px 0;
    text-align: center;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(255,77,79,0.08);
}
.no-results {
    color: #e1e1e1;
    background: rgba(0,123,255,0.08);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 1.08rem;
    margin: 18px 0;
    text-align: center;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
}
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
}
.results-table th, .results-table td {
    padding: 14px 12px;
    text-align: left;
    font-size: 1.05rem;
    color: #f1f1f1;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.results-table th {
    background: rgba(0,123,255,0.18);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.results-table th.active {
    background: rgba(0,123,255,0.28);
    color: #fff;
}
.results-table th .sort-ind {
    margin-left: 6px;
    opacity: 0.9;
}
.results-table tr {
    transition: background 0.18s;
    cursor: pointer;
}
.results-table tr:hover {
    background: rgba(0,123,255,0.12);
    transform: scale(1.01);
}
@media (max-width: 700px) {
    .search-card, .results-section {
        max-width: 98vw;
        padding: 18px 8px 14px 8px;
    }
    .title {
        font-size: 2rem;
    }
    .results-table th, .results-table td {
        padding: 10px 6px;
        font-size: 0.98rem;
    }
}
@media (max-width: 500px) {
    .container {
        margin-top: 18px;
    }
    .title {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    .search-card {
        padding: 10px 4px 8px 4px;
    }
    .results-section {
        padding: 10px 2px 8px 2px;
    }
}
