/* Filter Section */
.tests-search-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.tests-filter-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 33, 71, 0.12);
    border: 1px solid rgba(255, 183, 7, 0.1);
}

.tests-filter-card h2 {
    color: #002147;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
}

.tests-filter-card h2 i {
    color: #FFB707;
    margin-right: 10px;
}

.filter-form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-form-group {
    flex: 1;
    min-width: 200px;
}

.filter-form-group label {
    display: block;
    color: #002147;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-form-group label i {
    color: #FFB707;
    margin-right: 5px;
}

.filter-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

.filter-form-group select:focus {
    border-color: #FFB707;
    box-shadow: 0 0 0 3px rgba(255, 183, 7, 0.1);
}

.filter-submit-btn {
    background: linear-gradient(to right, #FFB707 0%, #FBDD95 100%);
    color: #002147;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.filter-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 183, 7, 0.3);
}

.filter-submit-btn i {
    margin-right: 8px;
}

/* Tests Grid */
.tests-grid-area {
    background: #fff;
}

.tests-grid-area .row {
    display: flex;
    flex-wrap: wrap;
}

.tests-grid-area .row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.test-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 33, 71, 0.12);
    border: 2px solid transparent;
    background-clip: padding-box;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFB707 0%, #FBDD95 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.test-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 183, 7, 0.25);
    border-color: rgba(255, 183, 7, 0.3);
}

.test-card:hover::before {
    opacity: 1;
}

/* Subject Badge */
.test-subject-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.test-card:hover .test-subject-badge {
    transform: rotate(5deg) scale(1.1);
}

/* Test Header */
.test-header {
    padding: 25px;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border-bottom: 2px solid #f0f2f5;
}

.test-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-status.status-upcoming {
    background: #28a745;
    color: #fff;
}

.test-status.status-active {
    background: #007bff;
    color: #fff;
}

.test-status.status-completed {
    background: #6c757d;
    color: #fff;
}

.test-status.status-archived {
    background: #dc3545;
    color: #fff;
}

.test-title {
    color: #002147;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.test-subject {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Test Body */
.test-body {
    padding: 20px 25px;
    flex-grow: 1;
}

.test-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
    font-size: 14px;
}

.test-info-row i {
    color: #FFB707;
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.test-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Test Footer */
.test-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.test-footer .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Test Solutions */
.test-solutions {
    padding: 20px 25px;
    border-top: 2px solid #f0f2f5;
    background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%);
}

.test-solutions h5 {
    color: #002147;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-solutions h5 i {
    color: #FFB707;
    margin-right: 10px;
    font-size: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.test-solutions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.test-solutions li {
    margin-bottom: 10px;
}

.solution-link {
    display: flex;
    align-items: center;
    color: #002147;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 183, 7, 0.05);
    transition: all 0.3s ease;
}

.solution-link:hover {
    color: #002147;
    background: rgba(255, 183, 7, 0.15);
    transform: translateX(5px);
}

.solution-link i {
    margin-right: 10px;
    color: #28a745;
    font-size: 16px;
}

.solution-pending {
    display: flex;
    flex-direction: column;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.solution-pending i {
    margin-right: 8px;
    color: #ffc107;
}

.solution-pending small {
    display: block;
    margin-top: 4px;
    margin-left: 24px;
    font-size: 12px;
}

/* No Tests Message */
.no-tests-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.no-tests-message i {
    font-size: 60px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.no-tests-message h3 {
    color: #002147;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.no-tests-message p {
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-form-row {
        flex-direction: column;
    }
    
    .filter-form-group {
        width: 100%;
        min-width: unset;
    }
    
    .filter-submit-btn {
        width: 100%;
    }
    
    .test-card {
        margin-bottom: 20px;
    }
    
    .test-subject-badge {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
    
    .test-header,
    .test-body,
    .test-footer,
    .test-solutions {
        padding: 15px 20px;
    }
    
    .test-title {
        font-size: 18px;
    }
}
