/* =========================================
LAYAR 2: SEARCH FULLSCREEN (image_2.png)
========================================= */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 2000;
    display: none;
    overflow-y: auto;
    padding: 15px;
}

/* Animasi Masuk */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px); /* Mulai 20px di bawah posisi asli */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Kembali ke posisi asli */
    }
}

/* Animasi Keluar (Opsional) */
@keyframes fadeOutSlide {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Class untuk memicu animasi */
.fade-in-custom {
    animation: fadeInSlide 0.3s ease-out forwards;
}

.fade-out-custom {
    animation: fadeOutSlide 0.3s ease-in forwards;
}

.search-overlay-header {
    background: var(--bg-search);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 8px 15px;
}

.search-overlay-header input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
}

.search-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Item Hasil Pencarian (Camera & Sector) */
.search-result-item {
    background-color: rgba(6, 26, 46, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.search-result-item:active {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: var(--accent-blue);
}

.result-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    position: relative;
}

.result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Status Dot */
.status-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-online {
    background-color: var(--accent-blue);
}

.status-lost {
    background-color: var(--danger-red);
}

/* Grid Category Buttons */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.category-btn {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-btn i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

/* Active Coverage Map Card */
.coverage-card {
    padding: 20px;
    margin-top: 25px;
    margin-bottom: 80px;
}

.coverage-card h6 {
    font-weight: 700;
    margin-bottom: 10px;
}

.node-badge {
    background: rgba(13, 110, 253, 0.15);
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

#clear-search {
    transition: all 0.2s ease;
    cursor: pointer;
}

#clear-search:active {
    transform: scale(0.8);
    color: var(--accent-blue) !important;
}

/* Input dengan icon */
/* Container Input Form */
.input-bar {
    display: flex;
    /* Mengaktifkan flexbox */
    align-items: center;
    /* Menyejajarkan ikon & input secara vertikal di tengah */
    padding: 10px 15px;
    /* Memberi ruang di dalam */
    border-radius: 8px;
    /* Sudut melengkung halus */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Border tipis agar terlihat di dark mode */
    margin-bottom: 5px;
    transition: 0.3s;
}

/* Efek saat input difokuskan */
.input-bar:focus-within {
    border-color: var(--accent-blue);
    /* box-shadow: 0 0 8px rgba(13, 110, 253, 0.3); */
}

/* Styling Ikon */
.input-bar i {
    font-size: 1.1rem;
    /* Ukuran ikon pas dengan teks */
    line-height: 1;
    /* Menghilangkan extra space pada ikon */
    display: flex;
    align-items: center;
}

/* Styling Input */
.input-bar input {
    flex: 1;
    /* Mengambil sisa ruang yang tersedia */
    font-size: 0.95rem;
    height: 100%;
    /* Mengikuti tinggi container */
    padding-left: 5px;
    /* Jarak antara ikon dan teks ketikan */
    border: none;
    background: transparent;
    color: white;
    outline: none;
}