:root {
    --bg-color: #060608;
    --card-bg: rgba(18, 18, 22, 0.75);
    --card-border: rgba(45, 45, 60, 0.8);
    --text-primary: #f0f0f0;
    --text-secondary: #8a909a;

    --accent-cyan: #00f0ff;
    --accent-green: #00ff88;
    --accent-red: #ff1155;
    --accent-yellow: #ffb800;
    --accent-purple: #a855f7;

    --font-heading: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;

    --radius: 14px;
    --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem 0;
}

/* ── Background ─────────────────────────────── */
.background-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.12;
    animation: float 12s infinite ease-in-out alternate;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent-cyan); top: -150px; left: -150px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent-red); bottom: -120px; right: -120px; animation-delay: -6s; }

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.12); }
}

/* ── Layout ─────────────────────────────────── */
.dashboard {
    max-width: 1120px;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

/* ── Header ─────────────────────────────────── */
.dashboard-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 2.5rem 0 1rem;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.brand-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.neon-cyan { color: var(--accent-cyan); }

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}
.accent-cyan { color: var(--accent-cyan); text-shadow: 0 0 12px rgba(0,240,255,0.45); }

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 640px;
    line-height: 1.65;
}

/* ── Dropzone ───────────────────────────────── */
.dropzone-container {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    border: 2px dashed rgba(0, 240, 255, 0.3);
    border-radius: var(--radius);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.dropzone-container:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.dropzone-container.dragover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 8px rgba(0,240,255,0.6));
    transition: transform 0.3s ease;
}

.dropzone-container:hover .upload-icon {
    transform: translateY(-5px);
}

.dropzone-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    text-align: center;
}

.dropzone-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

#file-input {
    display: none;
}

/* ── Results Dashboard ──────────────────────── */
.results-panel {
    width: 100%;
    max-width: 800px;
    display: none;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

.results-panel.active {
    display: flex;
}

.image-preview-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    backdrop-filter: blur(12px);
}

.image-preview {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--card-border);
}

.image-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.image-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    word-break: break-all;
}

.image-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    width: max-content;
}

.status-danger {
    background: rgba(255, 17, 85, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 17, 85, 0.3);
}

.status-safe {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* ── Metadata Grid ──────────────────────── */
.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.data-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label { color: var(--text-secondary); }
.data-value { 
    color: var(--text-primary); 
    text-align: right; 
    max-width: 65%; 
    word-break: break-word; 
}
.value-danger { color: var(--accent-red); }

/* ── Buttons ─────────────────────────────────── */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-primary, .btn-secondary {
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: rgba(255, 17, 85, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 0 15px rgba(255,17,85,0.15) inset;
}

.btn-primary:hover {
    background: rgba(255, 17, 85, 0.2);
    box-shadow: 0 0 25px rgba(255,17,85,0.3) inset, 0 0 20px rgba(255,17,85,0.3);
    text-shadow: 0 0 6px var(--accent-red);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .image-preview-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .action-bar {
        flex-direction: column;
    }
}
