/* MINIMAL main.css - Clean Starting Point */

/* Base Layout */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap");

html,
body {
  margin: 0;
  padding: 0 25px;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
}

/* Headings */
h1.title {
  text-align: center;
  font-weight: normal;
}

/* Links */
a {
  text-decoration: none;
  color: black;
}

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

/* Flex Layout */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.column {
  flex: 1 1 100%;
  max-width: 500px;
  padding: 10px;
}

/* Form Styling */
form {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #555555;
}

form > label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
  color: #555555;
}

input,
select {
  height: 33px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  max-width: 400px;
  width: 100%;
}

/* Reset width constraints for checkboxes and radio buttons */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  height: auto;
  max-width: none;
  padding: 0;
}

/* Checkbox Layout */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Shared Button Styling */
.button {
  background-color: rgb(68, 142, 228);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.2s ease-in-out;
  width: auto;
  min-width: fit-content;
}

.button:hover {
  background-color: rgb(34, 104, 184);
}

/* Footer */
footer {
  width: 100%;
  text-align: center;
  background: #fff;
  padding: 10px 0;
  font-size: 14px;
  position: relative;
  bottom: 0;
}

/* ===================== */
/* TABLE STYLING SECTION */
/* ===================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

td a {
  color: #007bff;
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

/* Back to Search button */
.back-button {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.back-button .button {
  background-color: rgb(68, 142, 228);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
}

.back-button .button:hover {
  background-color: #2c78c3;
}

/* Responsive Column Hiding */
@media (max-width: 768px) {
  .hide-small {
    display: none;
  }
}

@media (max-width: 600px) {
  .hide-medium {
    display: none;
  }
}

/* Profile Page Styling */
.profile-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.profile-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.profile-card h2 {
  margin-top: 0;
  margin-bottom: 25px;
  color: #333;
  font-size: 24px;
  border-bottom: 2px solid #448ee4;
  padding-bottom: 10px;
}

.profile-info {
  margin-bottom: 30px;
}

.profile-field {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.profile-field label {
  font-weight: 600;
  color: #555;
  min-width: 140px;
  font-size: 14px;
}

.profile-field .profile-value {
  color: #333;
  font-size: 16px;
  margin: 0;
}

.profile-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.profile-actions .button {
  background-color: rgb(68, 142, 228);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.profile-actions .button:hover {
  background-color: #2c78c3;
  text-decoration: none;
}

/* Alert Message Styling */
.alert-success {
  text-align: center;
  color: #2d6a4f;
  font-weight: bold;
  font-size: 14px;
  margin: 0 auto;
  padding: 10px;
  background-color: #d8f3dc;
  border-radius: 6px;
  border: 1px solid #95d5b2;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
}

.alert-message {
  text-align: center;
  color: #d63447;
  font-weight: bold;
  font-size: 14px;
  margin: 0 auto;
  padding: 10px;
  background-color: #ffe5e9;
  border-radius: 6px;
  border: 1px solid #ffb3c1;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
}
