/* CSS Variables for theming */
:root {
    --primary-color: #4e9ef7;
    --primary-dark: #0d2b5c;
    --accent-color: #007bff;
    --bg-overlay: rgba(13, 13, 13, 0.8);
    --container-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --text-color: #e0e0e0;
    --light-color: #f8f8f8;
    --shadow-color: rgba(0, 0, 0, 0.4);
  }
  
  /* Global Reset */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* Body with a dynamic gradient and image background */
  body {
    background: linear-gradient(135deg, var(--bg-overlay), rgba(26, 26, 26, 0.8)),
                url('1.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
  }
  
  /* Glassmorphic container with smooth fade-in */
  .scanner-container {
    width: 100%;
    max-width: 500px;
    background: var(--container-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px var(--shadow-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    text-align: center;
    animation: fadeIn 0.7s ease-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Heading */
  h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-color);
  }
  
  /* File upload button styling */
  .custom-file-upload {
    display: block;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #bbb;
    background: rgba(255, 255, 255, 0.05);
  }
  .custom-file-upload:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
  }
  input[type="file"] {
    display: none;
  }
  
  /* File preview styling */
  .file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
  }
  .file-preview svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
    margin-right: 8px;
  }
  .file-name {
    font-size: 0.95rem;
    color: #ccc;
  }
  
  /* Modern button styling */
  button {
    width: 100%;
    padding: 14px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
  }
  button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
  }
  button:disabled {
    background-color: #444;
    cursor: not-allowed;
  }
  
  /* Spinner styling */
  .spinner {
    width: 50px;
    height: 50px;
    margin: 20px auto;
    border: 4px solid #444;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Status message */
  .status {
    font-size: 0.9rem;
    margin: 20px 0;
    text-align: center;
    white-space: pre-wrap;
    line-height: 1.4;
  }
  
  /* Results wrapper to contain the table responsively */
  #results {
    margin-top: 20px;
    overflow-x: auto;
  }
  
  /* Table styling for results */
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 400px;
  }
  th, td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #333;
  }
  th {
    background-color: #2a2a2a;
  }
  td {
    background-color: #1e1e1e;
  }
  .malicious {
    color: #ff6b6b;
  }
  .clean {
    color: #4cd137;
  }
  