/* ===============================
   Base Reset
=============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===============================
   Body
=============================== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f5f7fa;
  color: #1f2937;
  line-height: 1.6;
}

/* ===============================
   Navbar
=============================== */
.navbar {
  background-color: #0b3c5d;
  padding: 14px;
  text-align: center;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}

.navbar a:hover {
  text-decoration: underline;
  color: #cce6ff;
}

/* ===============================
   Main Container
=============================== */
.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
  text-align: center;
}

/* ===============================
   Checker
=============================== */
.checker {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 25px auto;
  flex-wrap: wrap;
}

.checker input {
  width: 420px;
  max-width: 90%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.checker button {
  padding: 12px 22px;
  font-size: 16px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.checker button:hover {
  background-color: #1e40af;
}

/* ===============================
   Helper / Loading
=============================== */
.helper-text {
  margin-top: 10px;
  font-size: 14px;
  color: #475569;
}

#loading {
  margin: 15px 0;
  font-style: italic;
}

/* ===============================
   Result Box
=============================== */
.result-box {
  margin: 20px 0;
  padding: 20px;
  border-radius: 6px;
  text-align: left;
}

.safe {
  background-color: #ecfdf5;
  border-left: 6px solid #10b981;
}

.phishing {
    background-color: #fdecea;   /* light red */
    border-left: 5px solid #e74c3c;
}

.suspicious {
    background-color: #fff8e1;   /* light yellow */
    border-left: 5px solid #f1c40f;
}

.legitimate {
    background-color: #eafaf1;   /* light green */
    border-left: 5px solid #2ecc71;
}

/* ===============================
   Info Box
=============================== */
.info-box {
  margin: 25px 0;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.info-box h3 {
  margin-bottom: 10px;
}

.info-box h4 {
  margin-top: 15px;
}

.info-box ul {
  margin-left: 20px;
}

/* ===============================
   Detection Categories Alignment
   (TEXT LEFT-INDENT ONLY)
=============================== */
.categories-box {
  text-align: left;
}

.categories-box h3,
.categories-box h4 {
  text-align: left;
}

.categories-box ul {
  margin-left: 22px;
  padding-left: 0;
}

.categories-box li {
  margin: 4px 0;
}

/* ===============================
   Rule Table
=============================== */
.rule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}

.rule-table th,
.rule-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.rule-table th {
  background-color: #0b3c5d;
  color: #ffffff;
}

.rule-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* ===============================
   Reserved Rules Styling
=============================== */
.not-implemented {
  background-color: #f1f5f9;
  color: #64748b;
  font-style: italic;
}

/* ===============================
   Notes
=============================== */
.note {
  margin-top: 12px;
  font-size: 14px;
  color: #475569;
  text-align: center;
}

/* ===============================
   Utility
=============================== */
.hidden {
  display: none;
}

/* ===============================
   Footer
=============================== */
footer {
  margin: 40px 0;
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* ===============================
   About Page Section
   (Aligned with Homepage Style)
=============================== */
.about-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: left;
  color: #1f2937;
}

.about-section h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.about-section .subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 25px;
}

.about-section h2 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 8px;
  color: #0b3c5d;   /* matches navbar theme */
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #1f2937;
}

/* Divider spacing consistency */
.about-section p + h2 {
  margin-top: 35px;
}

/* Footer text inside about page */
.about-section .footer-text {
  margin-top: 45px;
  font-size: 0.9rem;
  color: #64748b;
  text-align: left;
}

