/* ============================================================
   Global styles for CellCommDB Website
   Author: ChatGPT (GPT-5)
   ============================================================ */

/* ====== Base ====== */
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/* Global link style */
a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  color: #084298;
  text-decoration: underline;
}

/* Section titles */
h1, h2, h3, h4, h5 {
  color: #212529;
  font-weight: 600;
}

/* ====== Navbar ====== */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
  font-size: 1.3rem;
  color: #0d6efd !important;
  letter-spacing: 0.5px;
}

.nav-link {
  font-weight: 500;
  color: #333 !important;
}

.nav-link:hover, .nav-link.active {
  color: #0d6efd !important;
}

/* ====== Hero section ====== */
.hero-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0 60px;
  text-align: center;
}

.hero-section h1 {
  color: #0d6efd;
  font-size: 2.3rem;
}

.hero-section p.lead {
  color: #555;
  margin: 0 auto;
}

/* ====== Search area ====== */
input.form-control {
  border-radius: 30px;
  padding: 10px 20px;
  border: 1px solid #ced4da;
}

button.btn-primary {
  border-radius: 30px;
  padding: 10px 25px;
}

/* ====== Illustration ====== */
.illustration {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.illustration:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ====== About section ====== */
.content-section {
  padding: 60px 0;
}

.content-section h2 {
  color: #0d6efd;
  margin-bottom: 20px;
}

.content-section p {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 15px;
  text-align: justify;
}

/* ====== Tables (for data.html) ====== */
.table thead {
  background-color: #0d6efd;
  color: #fff;
}

.table-hover tbody tr:hover {
  background-color: #f1f5ff;
}

/* ====== Statistics charts (for stats.html) ====== */
canvas {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

/* ====== Contact page ====== */
form {
  max-width: 600px;
  margin: 0 auto;
}

form label {
  font-weight: 500;
}

form .btn {
  border-radius: 25px;
  padding: 10px 25px;
}

/* ====== Footer ====== */
footer {
  background-color: #212529 !important;
  color: #f8f9fa;
  font-size: 0.9rem;
}

footer a {
  color: #66b2ff;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ====== Responsive adjustments ====== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .content-section {
    text-align: center;
  }

  .illustration {
    max-width: 90%;
  }
}
