* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    background: #0a0a23;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  body.light {
    background: #f4f7fa;
    color: #333;
  }
  
  /* Header */
  .header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #1e3a8a, #7c3aed);
  }
  
  .header-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .header-logo {
    width: 80px;
    margin-bottom: 1rem;
  }
  
  .header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  .header p {
    font-size: 1.2rem;
  }
  
  .theme-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #fff;
    color: #333;
    border: none;
    padding: 0.7rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }
  
  body.light .theme-btn {
    background: #333;
    color: #fff;
  }
  
  /* Main Section */
  .main {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .detector-container {
    background: #1e1e3f;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
  
  body.light .detector-container {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .main h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #a78bfa;
  }
  
  body.light .main h2 {
    color: #1e3a8a;
  }
  
  .url-form {
    display: flex;
    gap: 1rem;
  }
  
  .input-group {
    flex: 1;
    display: flex;
    gap: 0.5rem;
  }
  
  .url-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background: #2a2a4e;
    color: #e0e0e0;
    font-size: 1rem;
  }
  
  body.light .url-form input {
    background: #f4f4f4;
    color: #333;
  }
  
  .url-form input:focus {
    outline: none;
    box-shadow: 0 0 5px #a78bfa;
  }
  
  .check-btn {
    background: #a78bfa;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
  }
  
  body.light .check-btn {
    background: #1e3a8a;
  }
  
  .check-btn:hover {
    background: #7c3aed;
  }
  
  body.light .check-btn:hover {
    background: #1e40af;
  }
  
  /* Result */
  .result {
    margin-top: 2rem;
    text-align: center;
  }
  
  .result.hidden {
    display: none;
  }
  
  .result h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  #result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  #result-message {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .confidence-bar {
    width: 100%;
    height: 10px;
    background: #2a2a4e;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
  }
  
  body.light .confidence-bar {
    background: #e0e0e0;
  }
  
  .confidence-fill {
    height: 100%;
    background: #22c55e;
    transition: width 0.5s ease;
  }
  
  .confidence-fill.warning {
    background: #f59e0b;
  }
  
  .confidence-fill.danger {
    background: #ef4444;
  }
  
  .share-btn, .report-btn {
    background: #a78bfa;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin: 0.5rem;
  }
  
  body.light .share-btn, body.light .report-btn {
    background: #1e3a8a;
    color: #fff;
  }
  
  .share-btn:hover, .report-btn:hover {
    background: #7c3aed;
  }
  
  body.light .share-btn:hover, body.light .report-btn:hover {
    background: #1e40af;
  }
  
  .share-btn.hidden {
    display: none;
  }
  
  /* Loading */
  .loading {
    text-align: center;
    margin-top: 2rem;
  }
  
  .loading.hidden {
    display: none;
  }
  
  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #a78bfa;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* History */
  .history {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .history h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #a78bfa;
  }
  
  body.light .history h2 {
    color: #1e3a8a;
  }
  
  .history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .history-item {
    background: #1e1e3f;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  body.light .history-item {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .history-item p {
    margin: 0;
  }
  
  .history-item .status {
    font-weight: 600;
  }
  
  .history-item .status.safe {
    color: #22c55e;
  }
  
  .history-item .status.warning {
    color: #f59e0b;
  }
  
  .history-item .status.danger {
    color: #ef4444;
  }
  
  .clear-btn {
    display: block;
    margin: 1rem auto;
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .clear-btn.hidden {
    display: none;
  }
  
  .clear-btn:hover {
    background: #dc2626;
  }
  
  /* About */
  .about {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  
  .about h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #a78bfa;
  }
  
  body.light .about h2 {
    color: #1e3a8a;
  }
  
  .about p {
    margin-bottom: 1rem;
  }
  
  blockquote {
    margin: 2rem 0;
    padding: 1rem;
    background: #1e1e3f;
    border-left: 5px solid #a78bfa;
  }
  
  body.light blockquote {
    background: #f4f4f4;
    border-left-color: #1e3a8a;
  }
  
  blockquote p {
    font-style: italic;
  }
  
  blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
  }
  
  /* SIH */
  .sih {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  
  .sih h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #a78bfa;
  }
  
  body.light .sih h2 {
    color: #1e3a8a;
  }
  
  .sih-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #a78bfa;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-top: 1rem;
  }
  
  body.light .sih-badge {
    background: #1e3a8a;
  }
  
  .sih-badge i {
    font-size: 1.2rem;
  }
  
  /* Footer */
  .footer {
    text-align: center;
    padding: 1rem;
    background: #1e1e3f;
  }
  
  body.light .footer {
    background: #e0e0e0;
  }
  
  .social-links {
    margin-top: 0.5rem;
  }
  
  .social-links a {
    color: #e0e0e0;
    margin: 0 0.5rem;
    font-size: 1.5rem;
  }
  
  body.light .social-links a {
    color: #333;
  }
  
  .social-links a:hover {
    color: #a78bfa;
  }
  
  body.light .social-links a:hover {
    color: #1e3a8a;
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background: #1e1e3f;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
  }
  
  body.light .modal-content {
    background: #fff;
  }
  
  .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .modal-content h3 {
    margin-bottom: 1rem;
  }
  
  .modal-content input, .modal-content textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    background: #2a2a4e;
    color: #e0e0e0;
  }
  
  body.light .modal-content input, body.light .modal-content textarea {
    background: #f4f4f4;
    color: #333;
  }
  
  .modal-content textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  .submit-btn {
    background: #a78bfa;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
  }
  
  body.light .submit-btn {
    background: #1e3a8a;
  }
  
  .submit-btn:hover {
    background: #7c3aed;
  }
  
  body.light .submit-btn:hover {
    background: #1e40af;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .header h1 {
      font-size: 2rem;
    }
  
    .url-form {
      flex-direction: column;
    }
  
    .input-group {
      flex-direction: column;
    }
  
    .check-btn {
      width: 100%;
    }
  }