/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0; 
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f9fb;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Header */
#header {
  background-color: #0077b6;
  padding: 20px;
  text-align: center;
  color: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
}

#header .header-left h2 {
  font-size: 24px;
}

/* Main Heading */
main h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #023e8a;
}

/* Login Section */
#login-section {
  max-width: 400px;
  margin: 0 auto 40px;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.1);
}

#staff-login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#staff-login-form input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

#staff-login-form button {
  background-color: #0077b6;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

#staff-login-form button:hover {
  background-color: #023e8a;
}

#status {
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  color: red;
}

/* Patient Details Section */
#patient-details {
  max-width: 100%;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.1);
}

/* Search Bar */
.search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.search-bar .left button,
.search-bar .right button {
  background-color: #0096c7;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.search-bar .right input {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.search-bar button:hover {
  background-color: #0077b6;
}

/* Patient Table */
#patient-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

#patient-table th,
#patient-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

#patient-table thead {
  background-color: #caf0f8;
  color: #023e8a;
}

#patient-table tbody tr:nth-child(even) {
  background-color: #f0f8ff;
}

/* Bold and Highlight Notes Column */
#patient-table .highlight {
  background-color: #ffd166;
  color: #000;
  font-weight: bold;
}

/* Bold and Larger Notes Column */
#patient-table td:nth-child(10),
#patient-table th:nth-child(10) {
  font-weight: bold;
  font-size: 18px; /* You can increase this further if needed */
}


/* Notes Button */
#patient-table button {
  background-color: #48cae4;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  transition: background 0.3s ease;
}

#patient-table button:hover {
  background-color: #00b4d8;
}

/* Logout Button */
#logout-btn {
  background-color: #ef476f;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  float: right;
  transition: background 0.3s ease;
}

#logout-btn:hover {
  background-color: #d90429;
}

#welcome-message {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  margin: 20px 0;
  padding: 10px;
  background-color: #ecf0f1;
  border-radius: 5px;
}

#user-email {
  color: #3498db;
  font-style: italic;
}


/* Remove background color for patient records on mobile and add a new background */
@media (max-width: 768px) {
  #patient-details {
    background-color: #f0f8ff;  /* Set a light, subtle background color */
    box-shadow: none;  /* Remove box shadow for a clean mobile view */
    padding: 20px;  /* Adjust padding to make the content fit well */
    border-radius: 8px;
  }

  @media (max-width: 768px) {
  h1, h2, #header h2 {
    text-align: center;
  }

  #patient-details {
    padding: 10px;
  }

  .search-bar {
    flex-direction: column;
    gap: 10px;
  }

  #patient-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
    margin: 0 auto;
    overflow-x: auto;
    display: block;
  }

  #patient-table th, #patient-table td {
    padding: 8px;
    text-align: center;
    white-space: nowrap;
  }

  #patient-table thead {
    background-color: #0077cc;
    color: white;
  }
}
