/* Styles for the Test Archive Page */

#test-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
    background: #0361ac;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    align-items: center;
}

#test-filter-form input[type="text"],
#test-filter-form select {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 1em;
    flex: 1 1 100%;
    min-width: 200px;
    max-width: 300px;
    margin-bottom: 0;
}

#test-filter-form button {
    border: none;
    border-radius: 5px;
    background: #00cee6;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1 1 100%;
    margin-bottom: 0;
}

#test-filter-form button:hover {
    background-color: #0361ac;
}

.accordion {
    background-color: #0361ac;
    color: #fff;
    cursor: pointer;
    padding: 15px;
    margin: 10px 0;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
}

.accordion:hover {
    background-color: #00cee6;
}

.accordion::after {
    content: "\f078";
    font-family: "FontAwesome";
    font-size: 1.5em;
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}

.accordion.active::after {
    transform: rotate(180deg);
}

.panel {
    padding: 0 15px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fancy-list {
    list-style: none;
    padding: 10px;
}

.fancy-list li {
    background: linear-gradient(135deg, #0361ac, #00cee6);
    color: #fff;
    margin: 10px 0;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.fancy-list li::before {
    content: "\2022";
    color: #0361ac;
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
}

.fancy-list li:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.fancy-list a {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 15px;
}

@media (min-width: 600px) {
    #test-filter-form input[type="text"],
    #test-filter-form select,
    #test-filter-form button {
        flex: 1 1 auto;
    }
}

#loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

#loading i {
    font-size: 2em;
    color: #0361ac;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (min-width: 600px) {
    #test-filter-form input[type="text"],
    #test-filter-form select,
    #test-filter-form button {
        flex: 1 1 auto;
    }
}