@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Lora:ital,wght@0,500;0,600;1,400&display=swap');

:root {
  --mint:        #4CAF8E;
  --mint-light:  #E8F7F2;
  --mint-mid:    #A8DCC8;
  --sky:          #5BA4CF;
  --sky-light:    #EAF4FB;
  --sky-mid:      #A8D0EA;
  --white:        #FFFFFF;
  --off-white:    #F7FAFB;
  --card-bg:      rgba(255,255,255,0.85);
  --text-dark:    #1E3A3A;
  --text-mid:     #4A6A6A;
  --text-light:   #7A9A9A;
  --border:       rgba(76,175,142,0.22);
  --shadow-sm:    0 2px 12px rgba(76,175,142,0.10);
  --shadow-md:    0 6px 30px rgba(76,175,142,0.14);
  --shadow-lg:    0 14px 50px rgba(76,175,142,0.18);
  --radius-sm:    10px;
  --radius-md:    18px;
  --radius-lg:    26px;
  --gradient:    linear-gradient(135deg, #4CAF8E 0%, #5BA4CF 100%);
  --gradient-bg: linear-gradient(160deg, #EAF7F2 0%, #EAF4FB 55%, #F0F8EC 100%);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gradient-bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px 60px;
  position: relative;
}

body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
body::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(76,175,142,0.10) 0%, transparent 70%);
  top: -100px; left: -120px;
}
body::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(91,164,207,0.10) 0%, transparent 70%);
  bottom: -80px; right: -100px;
}

body > * { position: relative; z-index: 1; }

h1 {
  font-family: 'Lora', serif;
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 10px;
  text-shadow: none;
  letter-spacing: -0.4px;
}
h3 { font-size: 1.1rem; font-weight: 600; color: var(--mint); margin-bottom: 6px; }

p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 14px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
}

#registrationForm, #addRecordForm {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 42px;
  width: 100%;
  max-width: 680px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

table { width: 100%; border-spacing: 0 8px; }

td {
  padding: 6px 10px;
  color: var(--text-dark);
  font-size: 0.93rem;
  vertical-align: middle;
}
td:first-child {
  width: 155px;
  font-weight: 600;
  color: var(--text-mid);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  width: 100%;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(76,175,142,0.30);
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.93rem;
  font-family: 'DM Sans', sans-serif;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
  filter: none;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(76,175,142,0.14);
}
textarea { resize: vertical; min-height: 85px; }
input[type="radio"] { accent-color: var(--mint); margin-right: 4px; }

button {
  padding: 12px 30px;
  font-size: 0.93rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  width: auto;
  max-width: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: var(--gradient);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 16px rgba(76,175,142,0.28);
  letter-spacing: 0.2px;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(76,175,142,0.35);
  filter: brightness(1.06);
}
button:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.health-navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  box-shadow: 0 2px 16px rgba(76,175,142,0.07);
}
.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--mint);
  text-decoration: none;
}
.nav-links { list-style: none; display: flex; gap: 10px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 50px;
  background: var(--mint-light);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--mint); color: #fff; }

.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
  width: 100%;
  max-width: 1000px;
}
.I1 {
  width: 280px;
  max-width: 90%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.I1:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: var(--shadow-lg);
}

footer {
  margin-top: 40px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.82rem;
  line-height: 1.9;
  position: relative;
  z-index: 1;
  width: 100%;
}
footer b, footer font { color: var(--text-mid) !important; font-weight: 600; }

.error-msg {
  background: #FFF0F0;
  border: 1px solid #FFCCCC;
  color: #C53030;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.88rem;
  text-align: center;
  margin-top: 8px;
  width: 100%;
}

hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

@media screen and (max-width: 600px) {
  h1 { font-size: 1.65rem; }
  #registrationForm, #addRecordForm { padding: 22px 16px; }
  .health-navbar { padding: 12px 16px; }
  td:first-child { width: auto; display: block; margin-bottom: 2px; }
  table, tbody, tr, td { display: block; width: 100%; }
  .I1 { width: 100%; height: 160px; }
}
