* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* stops white right-side space */
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0; /* no more outer white border */
  padding: 0; /* you can keep this 0 */
}

/* header  */
.Top-Branding {
  background-color: #00163f;
  color: white;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  margin: 0;
}

header #logo {
  float: left;
  margin-left: -5px;
  margin-bottom: -10px;
  height: 150px;
}

.Top-Branding h1 {
  text-align: center;
  margin: 0;
  margin-top: 0.5px;
  font-size: 40px;
  color: #ffffff;
  font-family: 'Playfair Display Bold', serif;
  font-weight: 600;
  padding: 0;
  padding-right: 10px;
}

header a:hover {
  color: white;
  font-weight: bold;
  background-color: brown;
}

/* Navigation Bar  */
nav {
  background-color: #c3b1e1;
  margin: 0;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li {
  padding: 0.8em 1em;
}

header a {
  text-decoration: none;
  color: black;
  display: block;
  padding: 0.5em 1em;
  border-radius: 20px;
  float: none;
}

/* Main Index html Area  */
main {
  display: flex;
}

section {
  flex-basis: 100%;
  background-color: whitesmoke;
  margin: 0;
  padding: 20px;
  min-height: 80vh;
}

#section1 {
  padding-left: 20px;
  color: #00274c;
  padding-top: 10px;
  font-size: 30px;
  font-weight: bold;
}

#section2 {
  padding-left: 45px;
  font-size: 20px;
  color: #00274c;
}

#section3 {
  color: brown;
}

/* Login Features */
.student-login {
  background-color: #e0e0e0;
  display: flex;
  padding: 60px 16px 110px;
  justify-content: center;
}

.auth-wrap {
  width: 100%;
  max-width: 640px;
}

.auth-wrap1 {
  width: 100%;
  max-width: 850px;
}

.auth-card {
  background: rgb(255, 255, 255);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-top: 10px;
}

.auth-card1 {
  background: rgb(255, 255, 255);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-top: 10px;
}

.auth-title {
  font-size: 36px;
  margin: 4px 0 8px;
  color: #0a2c4a;
}

.auth-title1 {
  font-size: 36px;
  margin: 4px 0 8px;
  color: #0a2c4a;
  text-align: center;
}

.auth-sub {
  display: block;
  margin: 0 0 30px;
  color: rgb(72, 101, 129);
}

fieldset {
  margin-bottom: 30px; /* adds space between each section */
  padding: 10px 15px;
  border: 2px solid #c3b1e1;
  border-radius: 6px;
}

legend {
  color: brown;
  margin-bottom: 10px;
  font-weight: 800;
}

.auth-label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 500;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid gray;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
  margin-bottom: 10px;
}

.auth-input:focus {
  border-color: #1663eb;
  box-shadow: 0 0 0 4px rgba(22, 99, 235, 0.15);
}

.forgot-link {
  /* forget password */
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  margin-bottom: 12px;
  text-decoration: none;
  color: #0a2c4a; /* dark blue theme */
}

.forgot-link:hover {
  text-decoration: underline;
  color: #0d6efd;
}

.auth-btn {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border: none;
  border-radius: 8px;
  background: #00274c;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.auth-btn:hover {
  background: #0d6efd;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 45px; /* Room for toggle button */
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}

.toggle-password svg {
  fill: #00274c;
}

.toggle-password:hover svg {
  fill: brown;
}

.signup-card {
  margin-top: 20px; /* space below login card */
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 22px;
  text-align: center;
}

.signup-text {
  margin: 0 0 12px;
  font-size: 20px;
  color: #111827;
}

.signup-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1.6px solid #1663eb;
  color: #1663eb;
  text-decoration: none;
  font-weight: 700;
}

.signup-btn:hover {
  background: #0d6efd;
  color: #fff;
}

.field-error {
  color: red;
  font-size: 0.9rem;
  margin-left: 10px;
}

/* Meet the designer */

.dark2 {
  max-width: 900px;
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  color: rgba(243, 100, 33);
  height: auto; /* let it grow naturally */
}

#food {
  text-align: left;
  margin-left: 5%;
  color: rgba(243, 100, 33);
}
#food1 {
  text-align: left;
  margin-left: 5%;
  color: #00274c;
  margin-bottom: 30px;
}

.dark2 img {
  float: none; /* remove old float */
  margin: 0;
  max-width: 280px;
  height: auto;
  display: block;
}

.profile {
  margin: 0;
  text-align: left;
  float: none; /* remove old float */
  padding-right: 0; /* no extra push */
}

.profile h3 {
  margin-top: 10px;
  text-align: center;
}

.profile p {
  color: #00163f;
}

/* Dashboard Php  */
.dashboard-details {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.dashboard-label {
  font-weight: bold;
  color: #111827;
}

.dashboard-value {
  color: #374151;
  text-align: right;
}

.dashboard-actions {
  margin-top: 1rem;
}

.dashboard-actions .auth-btn {
  margin-right: 0.5rem;
}

.dashboard-secondary-actions {
  margin-top: 1rem;
  text-align: right;
}

/* Public Page for Registered Students  */
.student-table-wrapper {
  overflow-x: visible;
  margin-top: 1rem;
}

.student-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* important! forces equal shrink & wrap */
  font-size: 0.95rem;
}

.student-table th,
.student-table td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 0.75rem;
  text-align: left;
  word-wrap: break-word; /* wrap long content */
  white-space: normal; /* allow emails to break to next line */
}

.student-table th {
  background-color: #f3f4f6;
  font-weight: bold;
}

.student-table tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Footer Page  */
footer {
  background-color: #00163f;
  padding: 0;
  margin-top: auto;
  color: rgba(243, 100, 33);
  text-align: center;
}

#down {
  color: white;
}

#down1 {
  color: brown;
}

#down1:hover {
  color: white;
}

/* =========================
   Mobile & Tablet (≤ 768px)
   ========================= */

@media (max-width: 768px) {
  /* Remove outer body margin on small screens */
  body {
    margin: 0;
  }

  /* Header / Branding stacks nicely */
  .Top-Branding {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12px;
  }

  header #logo {
    height: 90px;
    margin: 0 0 8px 0;
  }

  #logo-head h1 {
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
  .Top-Branding h1 {
    font-size: 26px;
    padding-right: 0;
  }

  /* Navigation menu becomes vertical */
  nav {
    padding: 4px 0;
  }

  .menu {
    flex-direction: column;
    align-items: center;
  }

  .menu li {
    padding: 0.4em 0;
  }

  header a {
    padding: 0.4em 0.8em;
  }

  /* Main layout: stack sections instead of side-by-side */
  main {
    flex-direction: column;
  }

  section {
    padding: 12px;
    min-height: auto;
  }

  /* Login / registration card spacing */
  .student-login {
    padding: 30px 15px 60px;
  }

  .auth-wrap {
    width: 100%;
    max-width: 100%;
  }

  .auth-card,
  .signup-card {
    padding: 20px 16px;
    width: 100%;
    max-width: 100%;
  }

  .auth-card1 {
    padding: 20px 10px;
    width: 100%;
    max-width: 100%;
  }

  form {
    max-width: 100%;
  }
  .auth-title {
    font-size: 26px;
  }

  .auth-wrap1 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .auth-title1 {
    text-align: left;
  }
  .auth-sub {
    margin-bottom: 20px;
  }

  .auth-input {
    font-size: 14px;
    height: auto;
    padding: 8px 10px;
  }

  .auth-btn {
    height: auto;
    padding: 10px 12px;
    font-size: 15px;
  }

  /* Dashboard layout: labels/value stack */
  .dashboard-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-label,
  .dashboard-value {
    text-align: left;
  }

  /* Public student list table: slightly smaller font */
  .student-table {
    font-size: 0.85rem;
  }

  .student-table-wrapper {
    overflow-x: auto;
  }
  .student-table th,
  .student-table td {
    font-size: 0.85rem;
    padding: 0.1rem 0.1rem;
  }
  /* Make the "Meet the Developer" section stack nicely */
  #food,
  #food1 {
    margin-left: 0;
    text-align: center;
    padding: 0 1rem;
  }

  .dark2 {
    width: 100%;
    height: auto; /* remove fixed height */
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column; /* stack image and text */
    align-items: center;
    justify-content: center;
  }

  .dark2 img {
    margin: 0 auto 1rem; /* center image */
    max-width: 260px;
    width: 70%;
    height: auto;
  }

  .profile {
    float: none; /* no float on small screens */
    padding-right: 0;
    margin-top: -15px;
    text-align: center;
    padding-bottom: 10px;
  }

  .profile h3,
  .profile p {
    text-align: center;
  }
}
