body {
  font-family: 'Segoe UI', sans-serif;
  background: #121212;
  color: #ffffff;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: auto;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

form {
  margin-bottom: 20px;
}

input[type="text"] {
  width: 70%;
  padding: 10px;
  font-size: 16px;
  background: #2c2c2c;
  color: #ffffff;
  border: 1px solid #444;
  border-radius: 4px;
}

button {
  padding: 10px 15px;
  font-size: 16px;
  background: #1e88e5;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #1565c0;
}

.headers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.header-box.critical {
  border-left: 6px solid #ef5350;
}

.header-box.medium {
  border-left: 6px solid #ffca28;
}

.header-box.informational {
  border-left: 6px solid #29b6f6;
}

.badge {
  background: #555;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 5px;
}

.grade {
  font-size: 1.5em;
  font-weight: bold;
  color: #81c784;
}

.deprecated {
  color: #f44336;
  font-weight: bold;
}
.header-box {
  flex: 1 1 300px;
  padding: 15px;
  border: 1px solid #333;
  background: #2a2a2a;
  border-radius: 8px;
  color: #e0e0e0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  word-break: break-word !important;
}
.header-box pre,
.header-box code {
  white-space: pre-wrap;
  word-break: break-word;
}
#recent-scans {
  margin-top: 40px;
  padding: 20px;
  background: #1c1c1c;
  border-top: 1px solid #333;
}

#recent-scans h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.recent-scan-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.recent-scan-card {
  background: #2a2a2a;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  color: #f1f1f1;
}

.recent-scan-card strong {
  display: block;
  margin-bottom: 5px;
}

.recent-scan-card .grade {
  font-weight: bold;
}

.grade-A { color: #00ff00; }
.grade-B { color: #aaff00; }
.grade-C { color: #ffcc00; }
.grade-D { color: #ff9900; }
.grade-F { color: #ff3333; }

.urls {
  font-size: 3vh;
  color: #89a96a;
}
/* Loader Wrapper */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f172a; /* dark background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Spinning Loader */
.loader {
  border: 8px solid #1e293b;
  border-top: 8px solid #38bdf8; /* sky-400 */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
