/* Style for search results tables */
.search-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 1.15em;
}
.search-table th,
.search-table td {
  border: 1.5px solid #222;
  padding: 12px 16px;
  text-align: left;
}
.search-table th {
  background: #f4f4f4;
  font-weight: bold;
}
.search-table tr:nth-child(even) {
  background: #fafafa;
}
/* Style guide for body content */
body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
  text-align: center;
}
/*Sets colour for h1 headers */
h1 {
  color: #2c3e50;
}
/* Style guide for navigation bar */
nav {
  background: #fff; /* White background */
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #222; /* Black bottom border */
  border-top: 2px solid #222; /* Black top border (optional) */
  border-left: 0;
  border-right: 0;
}

nav .logo {
  color: #222; /* Black text for logo */
  font-weight: bold;
  font-size: 1.2em;
}

nav .nav-links a {
  color: #222; /* Black text for links */
  margin-right: 2em;
  text-decoration: none;
  font-weight: bold;
}
nav .nav-links a:last-child {
  margin-right: 0;
}

/* Dropdown style guide for account drop down in nav bar*/
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: #fff;
  color: #222;
  border: 1px solid #222;
  padding: 0.5em 1em;
  font-size: 1em;
  cursor: pointer;
  border-radius: 4px;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 160px;
  border: 1px solid #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.dropdown-content a {
  color: #222;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #f4f4f4;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background: #f4f4f4;
}

/* Style guide for  content on the home page */
.main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
  max-width: 900px; 
  margin-left: auto; 
  margin-right: auto; 
  background: #fff; 
  padding: 80px 100px; 
  border-radius: 12px; 
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07); 
}
.left-content {
  flex: 1;
  text-align: left;
}
.right-content {
  flex: 1;
  display: flex;
  justify-content: center;
}
.right-content img {
  max-width: 160%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Style guide for the login form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 300px;
  margin: 0 auto;
}
.login-form input {
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
.login-form button {
  padding: 0.75em;
  background: #000000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.login-form button:hover {
  background: #1a232b;
}

.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Adjusts vertical centering */
  background: #fff;
  margin: 60px auto 0 auto;
  padding: 10px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  max-width: 400px;
}
/* Style guide for the signup button on login page and sign up page */
.signup-btn {
  padding: 0.75em;
  background: #000000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}
/* Style guide for the signup form */
.signup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  max-width: 600px;
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.signup-form button {
  grid-column: 1 / -1; /* Span both columns */
  justify-self: center; /* Center the button horizontally */
  width: 50%; /* Optional: make the button narrower */
  margin-top: 20px;
}

.signup-form input,
.signup-form select {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.signup-content h1 {
  text-align: center;
  margin-bottom: 24px;
}

/* Style guide for Search Bar used on homepages for all usertypes  */
.search-bar-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 32px 0 24px 0;
}

.search-bar {
  width: 450px;
  max-width: 90vw;
  padding: 18px 20px;
  font-size: 1.3em;
  border: 2px solid #222;
  border-radius: 8px 0 0 8px;
  outline: none;
}

.search-btn {
  padding: 18px 32px;
  font-size: 1.2em;
  border: 2px solid #222;
  border-left: none;
  border-radius: 0 8px 8px 0;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:hover {
  background: #444;
}


.patient-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.patient-table th, .patient-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.patient-table th {
  background-color: #4CAF50;
  color: white;
}

.patient-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.patient-table tr:hover {
  background-color: #ddd;
}


/* --- SEARCH RESULTS SECTION --- */
.search-results-container {
  max-width: 1000px;
  margin: 40px auto;
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  text-align: left;
}

.search-results-container h1 {
  color: #2c3e50;
  font-size: 1.8em;
  margin-bottom: 20px;
  border-bottom: 2px solid #222;
  padding-bottom: 10px;
}

/* Search results table styling */
.search-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1em;
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
}

.search-table th,
.search-table td {
  border: 1px solid #ddd;
  padding: 14px 16px;
  text-align: left;
}

.search-table th {
  background-color: #2c3e50;
  color: #fff;
  font-weight: bold;
}

.search-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.search-table tr:hover {
  background-color: #f1f1f1;
}

.search-results-container p {
  font-size: 1.1em;
  color: #555;
  text-align: center;
  margin-top: 16px;
}





