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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.shield-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 20px #00ff88);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #cccccc;
    font-size: 1.1rem;
    margin-top: 10px;
}

.upload-section {
    margin-bottom: 30px;
}

.drop-zone {
    border: 3px dashed #00ff88;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    background: rgba(0, 255, 136, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: #00ccff;
    background: rgba(0, 204, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.drop-zone h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.drop-zone p {
    color: #cccccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

#fileInput {
    display: none;
}

.browse-btn {
    background: linear-gradient(45deg, #00ff88, #00ccff);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.browse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4);
}

.scan-controls {
    text-align: center;
    margin-bottom: 40px;
}

.scan-button {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    border: none;
    padding: 20px 40px;
    border-radius: 30px;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scan-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 71, 87, 0.4);
}

.scan-button:disabled {
    background: #555;
    cursor: not-allowed;
}

.scan-icon {
    font-size: 1.5rem;
    animation: scan-pulse 2s infinite;
}

@keyframes scan-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.scan-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.scan-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #cccccc;
    cursor: pointer;
}

.scan-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00ff88;
}

.results-section {
    margin-top: 40px;
}

.results-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
}

.overall-status {
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.status-safe {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid #00ff88;
    color: #00ff88;
}

.status-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid #ffc107;
    color: #ffc107;
}

.status-danger {
    background: rgba(255, 71, 87, 0.2);
    border: 2px solid #ff4757;
    color: #ff4757;
}

.file-result {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #00ff88;
}

.file-result.warning {
    border-left-color: #ffc107;
}

.file-result.danger {
    border-left-color: #ff4757;
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.file-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
}

.threat-level {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.threat-safe { background: #00ff88; color: #000; }
.threat-low { background: #ffc107; color: #000; }
.threat-medium { background: #ff8c00; color: #fff; }
.threat-high { background: #ff4757; color: #fff; }

.analysis-details {
    margin-top: 15px;
}

.detail-item {
    margin-bottom: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #00ccff;
}

.detail-label {
    font-weight: bold;
    color: #00ccff;
    margin-bottom: 5px;
}

.detail-value {
    color: #cccccc;
    line-height: 1.5;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.scanner-animation {
    text-align: center;
}

.radar {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    position: relative;
    margin: 0 auto 30px;
    animation: radar-spin 2s linear infinite;
}

.radar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 45%;
    background: linear-gradient(to top, transparent, #00ff88);
    transform-origin: bottom;
    transform: translate(-50%, -100%) rotate(0deg);
    animation: sweep 2s linear infinite;
}

@keyframes radar-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes sweep {
    0% { transform: translate(-50%, -100%) rotate(0deg); }
    100% { transform: translate(-50%, -100%) rotate(360deg); }
}

.scanning-text {
    font-size: 1.5rem;
    color: #00ff88;
    font-weight: bold;
    animation: text-pulse 1.5s ease-in-out infinite;
}

@keyframes text-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.add-more-button {
    background: linear-gradient(45deg, #00ccff, #00ff88);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: #000;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-more-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 204, 255, 0.4);
}

.add-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.ai-info-section {
    margin: 60px 0;
    text-align: center;
    padding: 40px;
    background: rgba(0, 255, 136, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.ai-info-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-subtitle {
    color: #cccccc;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.ai-features {
    margin-bottom: 40px;
}

.internet-notice {
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid #00ccff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.notice-icon {
    font-size: 2rem;
    color: #00ccff;
}

.notice-text {
    color: #00ccff;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

.offline-indicator {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    color: #ffc107;
}

.online-indicator {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    color: #00ff88;
}

.analysis-mode-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

.mode-online {
    background: #00ff88;
    color: #000;
}

.mode-offline {
    background: #ffc107;
    color: #000;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .drop-zone {
        padding: 40px 20px;
    }
    
    .scan-options {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .file-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}