:root {
    --bg-color: #050810;
    --panel-bg: rgba(10, 15, 30, 0.7);
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ea;
    --neon-green: #39ff14;
    --neon-red: #ff2a2a;
    --neon-yellow: #ffea00;
    --text-main: #e0eaff;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Share Tech Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

/* Cyber Grid Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    perspective: 1000px;
    transform: rotateX(60deg) translateY(-100px) scale(2.5);
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { transform: rotateX(60deg) translateY(0) scale(2.5); }
    100% { transform: rotateX(60deg) translateY(30px) scale(2.5); }
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.main-title .highlight {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1) inset, 0 0 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.panel-title {
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--neon-cyan);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 1rem;
    border-radius: 4px;
    resize: vertical;
    outline: none;
    transition: box-shadow 0.3s;
    margin-bottom: 1rem;
}

textarea:focus {
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

textarea::placeholder {
    color: rgba(0, 243, 255, 0.3);
}

/* Neon Button */
.neon-button {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    background: transparent;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: 0.2s;
    letter-spacing: 2px;
    width: 100%;
}

.neon-button.small-btn {
    width: auto;
    padding: 8px 15px;
    font-size: 0.9rem;
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
}

.neon-button:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 40px var(--neon-cyan), 0 0 80px var(--neon-cyan);
    transition-delay: 0.1s;
}

/* Target List Items */
.target-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.target-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-left: 4px solid #555;
    border-radius: 4px;
    transition: all 0.3s ease;
    word-break: break-all;
}

.target-item .url {
    font-size: 1.1rem;
    flex: 1;
}

.target-item .status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-left: 1rem;
    min-width: 120px;
    text-align: center;
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
}

/* Status Colors */

/* ALIVE (200-299) */
.target-item.status-alive { border-left-color: var(--neon-green); box-shadow: 0 0 10px rgba(57, 255, 20, 0.2); }
.target-item.status-alive .url { color: var(--neon-green); text-shadow: 0 0 5px var(--neon-green); }
.target-item.status-alive .status-badge { 
    background: rgba(57, 255, 20, 0.1); 
    border-color: var(--neon-green); 
    color: var(--neon-green); 
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4) inset;
}

/* ERROR BUT ALIVE (400-599) */
.target-item.status-error { border-left-color: var(--neon-yellow); box-shadow: 0 0 10px rgba(255, 234, 0, 0.2); }
.target-item.status-error .url { color: var(--neon-yellow); text-shadow: 0 0 5px var(--neon-yellow); }
.target-item.status-error .status-badge { 
    background: rgba(255, 234, 0, 0.1); 
    border-color: var(--neon-yellow); 
    color: var(--neon-yellow); 
    box-shadow: 0 0 15px rgba(255, 234, 0, 0.4) inset;
}

/* DEAD / UNREACHABLE */
.target-item.status-dead { border-left-color: var(--neon-red); box-shadow: 0 0 10px rgba(255, 42, 42, 0.2); }
.target-item.status-dead .url { color: var(--neon-red); text-shadow: 0 0 5px var(--neon-red); }
.target-item.status-dead .status-badge { 
    background: rgba(255, 42, 42, 0.1); 
    border-color: var(--neon-red); 
    color: var(--neon-red); 
    box-shadow: 0 0 15px rgba(255, 42, 42, 0.4) inset;
}

/* LOADING */
.target-item.status-loading { border-left-color: var(--neon-cyan); opacity: 0.7;}
.target-item.status-loading .url { color: var(--text-main); }
.target-item.status-loading .status-badge { 
    position: relative;
    overflow: hidden;
    color: transparent;
}
.target-item.status-loading .status-badge::after {
    content: "SCANNING...";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--neon-cyan);
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}
