:root {
    --bg-color: #090a0f;
    --neon-blue: #00f3ff;
    --neon-purple: #b026ff;
    --glass-bg: rgba(20, 22, 33, 0.6);
    --glass-border: rgba(0, 243, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #8b949e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Cyberpunk Effects */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
}

.glow-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
}

.top-left {
    width: 300px; height: 300px;
    background: var(--neon-purple);
    top: -100px; left: -100px;
}

.bottom-right {
    width: 400px; height: 400px;
    background: var(--neon-blue);
    bottom: -150px; right: -150px;
}

/* Navbar */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.logo span span {
    color: var(--neon-blue);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

/* Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Glass Card & Scanner Box */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(0, 243, 255, 0.3);
    border-radius: 10px;
    padding: 50px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(0,0,0,0.2);
}

.drop-zone.dragover {
    border-color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2) inset;
}

.neon-icon {
    font-size: 3rem;
    color: var(--neon-blue);
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--neon-blue);
}

.drop-zone h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.drop-zone p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.file-info {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Buttons */
.neon-btn {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1) inset;
}

.neon-btn:hover {
    background: var(--neon-blue);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--neon-blue);
}

.submit-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 243, 255, 0.1);
}

/* Upload Progress UI */
.upload-progress {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.file-details {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--neon-blue);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    transition: width 0.3s ease;
}

#status-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: right;
}

/* Footer */
.glass-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

/* Responsive */
@media (max-width: 768px) {
    .glass-nav { padding: 15px 20px; flex-direction: column; gap: 15px; }
    .nav-links a { margin: 0 10px; }
    .glitch-text { font-size: 2rem; }
    .glass-card { padding: 20px; }
    .glass-footer { flex-direction: column; gap: 15px; text-align: center; }
}


/* =========================================
   Report Page Specific Styles (Centered & 100% Responsive)
========================================= */
.report-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically Center */
    align-items: center;     /* Horizontally Center */
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px; 
}

.report-card {
    width: 100%;
    padding: 40px;
    margin: 0;
}

/* Report Header */
.report-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.score-circle {
    width: 120px;
    height: 120px;
    min-width: 120px; /* Prevent shrinking on mobile */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px inset;
    border: 4px solid;
}

.score-circle.safe {
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2) inset, 0 0 15px rgba(0, 255, 0, 0.4);
}

.score-circle.danger {
    border-color: #ff003c;
    color: #ff003c;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.2) inset, 0 0 15px rgba(255, 0, 60, 0.4);
}

.score-circle h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin: 0;
}

.score-circle span {
    font-size: 1rem;
    opacity: 0.7;
}

.file-meta {
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.file-name {
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-bottom: 10px;
    word-break: break-all;
}

.file-meta p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.hash-text {
    font-family: monospace;
    color: #fff;
    font-size: 0.85rem;
    word-break: break-all; /* Fixes mobile overflow for long hashes */
    display: inline-block;
    margin-top: 2px;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.9rem;
}

.safe-badge {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.danger-badge {
    background: rgba(255, 0, 60, 0.1);
    color: #ff003c;
    border: 1px solid #ff003c;
}

/* Divider */
.neon-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    margin: 30px 0;
    opacity: 0.5;
}

/* Engine Results Grid */
.engine-results h3 {
    margin-bottom: 20px;
    color: var(--text-main);
    font-family: 'Orbitron', sans-serif;
}

.engine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.engine-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: 0.3s;
}

.engine-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.malicious-item {
    background: rgba(255, 0, 60, 0.05);
    border-color: rgba(255, 0, 60, 0.2);
}

.engine-name {
    font-weight: 500;
}

.engine-status {
    font-size: 0.9rem;
    font-weight: 600;
}

.engine-status.clean {
    color: #00ff00;
}

.engine-status.malicious {
    color: #ff003c;
}

/* Report Actions */
.report-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn {
    color: var(--neon-purple);
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.1) inset;
}

.download-btn:hover {
    background: var(--neon-purple);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--neon-purple);
}

/* =========================================
   100% Mobile Responsive Fixes
========================================= */
@media (max-width: 768px) {
    .report-container {
        padding: 15px;
        /* Allow scroll if content is too tall for small mobile screens */
        justify-content: flex-start; 
        margin-top: 10px;
    }
    
    .report-card {
        padding: 25px 15px;
    }

    .report-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .score-circle {
        margin: 0 auto;
    }

    .engine-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .report-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .report-actions a, .report-actions button {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}



/* =========================================
   API Documentation Page Styles
========================================= */
.api-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.api-card {
    width: 100%;
    padding: 40px;
}

.api-header {
    text-align: center;
    margin-bottom: 30px;
}

.api-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Endpoints */
.endpoint-section h3, .code-section h3, .response-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    margin: 25px 0 15px 0;
}

.endpoint-title {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    font-family: monospace;
    font-size: 1.2rem;
}

.method.post {
    background: rgba(0, 243, 255, 0.15);
    color: var(--neon-blue);
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 15px;
    border: 1px solid var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.endpoint-title .url {
    color: var(--text-main);
}

.endpoint-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* API Table */
.api-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.api-table th, .api-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.api-table th {
    background: rgba(0, 243, 255, 0.05);
    color: var(--neon-blue);
    font-family: 'Orbitron', sans-serif;
}

.api-table td code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: #ff9d00;
}

/* Code Blocks */
.code-block-wrapper {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--neon-blue);
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Rajdhani', sans-serif;
}

.copy-btn:hover {
    text-shadow: 0 0 10px var(--neon-blue);
}

.code-block-wrapper pre {
    padding: 20px;
    overflow-x: auto;
    margin: 0;
}

.code-block-wrapper code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #a5d6ff;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .api-card {
        padding: 20px;
    }
    
    .endpoint-title {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .api-table {
        display: block;
        overflow-x: auto;
    }
}