/* Vulnerability Search Experience Styles */

.search-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 24, 0.8);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-modal-backdrop.active .search-modal-content {
    transform: scale(1) translateY(0);
}

/* Close Button */
.search-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
}

.search-modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Radar Animation */
.radar-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    border: 1px solid rgba(0, 242, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 242, 255, 0.4) 0%, transparent 25%);
    animation: radar-sweep 2s linear infinite;
}

.radar-ping {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(2px);
    box-shadow: 0 0 10px var(--primary);
}

@keyframes radar-sweep {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Checklist Tray */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.checklist-item.active {
    opacity: 1;
    color: var(--primary);
}

.checklist-item.completed {
    opacity: 1;
    color: #4ade80;
    /* Success Green */
}

.check-icon {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s ease;
}

.checklist-item.completed .check-icon {
    background: #4ade80;
    border-color: #4ade80;
    color: #050A18;
}

/* Timeline */
.leak-timeline {
    position: relative;
    padding-left: 2rem;
}

.leak-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0.2;
}

.leak-event {
    position: relative;
    margin-bottom: 2rem;
}

.leak-event::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border: 3px solid #050A18;
    border-radius: 50%;
}

/* Results Content Area */
.search-results-area {
    display: none;
}

.search-results-area.active {
    display: block;
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Risk Score */
.risk-meter {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.risk-level {
    height: 100%;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom States */
.state-critical {
    color: #f87171;
    background: #f87171;
}

.state-warning {
    color: #fbbf24;
    background: #fbbf24;
}

.state-safe {
    color: #4ade80;
    background: #4ade80;
}