* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-dark: #0B0D17;
    --neon-blue: #00F0FF;
    --hyper-pink: #FF003C;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: #8A93A6;

    /* Result Colors */
    --status-blue: #3A86FF;
    --status-green: #00E676;
    --status-yellow: #FFD600;
    --status-red: #FF1744;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 60, 0.08), transparent 25%);
}

/* Animated Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: 10%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: var(--neon-blue);
    animation-delay: 0s;
}

.blob-2 {
    bottom: 20%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: var(--hyper-pink);
    animation-delay: 2s;
}

.blob-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: #7000FF;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 5vh;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.logo .highlight {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Search Bar */
.search-container {
    display: flex;
    width: 100%;
    max-width: 800px;
    padding: 0.5rem;
    border-radius: 100px;
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-container:focus-within {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.4);
}

.input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.icon-search {
    color: var(--text-muted);
    margin-right: 1rem;
    width: 24px;
    height: 24px;
}

#urlInput {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 400;
}

#urlInput::placeholder {
    color: rgba(138, 147, 166, 0.6);
}

.btn-scan {
    background: linear-gradient(135deg, var(--neon-blue), #00A3FF);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-scan:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.btn-scan:active {
    transform: translateY(1px);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    color: var(--neon-blue);
    font-weight: 600;
    letter-spacing: 2px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dots {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Next-Gen Anti-Clutter HUD Layout */
.hud-container {
    width: 100%;
    max-width: 1400px; /* Wider for full dashboard feel */
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    align-items: start;
}

.hud-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

/* Sidebar Navigation */
.hud-sidebar {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

/* Hide scrollbar for sidebar */
.hud-sidebar::-webkit-scrollbar { width: 4px; }
.hud-sidebar::-webkit-scrollbar-track { background: transparent; }
.hud-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sidebar-header {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-header h2 {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-list {
    list-style: none;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.3);
}

.nav-item.active::before {
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-item.active .nav-icon {
    color: var(--neon-blue);
}

.nav-title {
    font-weight: 500;
    flex-grow: 1;
    font-size: 1rem;
}

/* Status Dots */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.status-green { color: var(--status-green); background: var(--status-green); }
.status-yellow { color: var(--status-yellow); background: var(--status-yellow); }
.status-red { color: var(--status-red); background: var(--status-red); }

/* Main Content Viewer */
.hud-content {
    padding: 2.5rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.content-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.card-icon {
    margin-right: 1rem;
    width: 32px;
    height: 32px;
}

.card-icon.blue { color: var(--status-blue); }
.card-icon.yellow { color: var(--status-yellow); }
.card-icon.red { color: var(--status-red); }
.card-icon.pink { color: var(--hyper-pink); }
.card-icon.green { color: var(--status-green); }

.content-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.content-body {
    flex-grow: 1;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.data-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.data-value {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    word-break: break-all;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.03);
}

.data-value.highlight {
    color: var(--neon-blue);
    font-weight: 600;
    border-left: 3px solid var(--neon-blue);
}

.item-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-item {
    background: rgba(0,0,0,0.3);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    border-left: 3px solid var(--text-muted);
}

.list-item.warning { border-left-color: var(--status-yellow); }
.list-item.critical { border-left-color: var(--status-red); }
.list-item.good { border-left-color: var(--status-green); }

.list-item i {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(0,230,118,0.15);
    color: var(--status-green);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,230,118,0.3);
}

.badge.danger {
    background: rgba(255,23,68,0.15);
    color: var(--status-red);
    border-color: rgba(255,23,68,0.3);
}

.badge.warning {
    background: rgba(255,214,0,0.15);
    color: var(--status-yellow);
    border-color: rgba(255,214,0,0.3);
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--neon-blue);
    transform: translateY(-2px);
}

.powered-by {
    margin-top: 0.5rem;
}

.glow-link {
    color: var(--neon-blue);
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}

.glow-link:hover {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* Responsive HUD */
@media (max-width: 992px) {
    .hud-container {
        grid-template-columns: 1fr;
    }

    .hud-sidebar {
        position: static;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        border-radius: 16px;
        padding: 1rem;
    }

    .input-wrapper {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }

    .btn-scan {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }

    .logo { font-size: 2.5rem; }
}
