/* General Layout */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f9fc;
    margin: 0;
    padding: 0;
    color: #222;
}

main {
    padding: 10px 10px 0px 10px;
}

/* Header */
header h1 {
    text-align: center;
    color: navy;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 2rem;
}
header h2 {
    text-align: center;
    color: navy;
    font-size: 1.5rem;
    margin-bottom: 10px;
}
header h3 {
    text-align: center;
    color: navy;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Section headers */
section h2 {
    text-align: center;
    color: navy;
    font-size: 1.5rem;
    margin-top: 0px;
    margin-bottom: 10px;
}
section h3 {
    text-align: center;
    color: navy;
    font-size: 1rem;
    margin-bottom: 10px;
}
section h4 {
    text-align: center;
    color: blue;
    font-size: 1rem;
    margin-bottom: 10px;
}
section h4.makered {
    color: red;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    font-size: 1rem;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #e6f0fa;
    color: navy;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.pending {
    background-color: lightyellow; 
}

/* navbar */
.navbar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
    background-color: navy;
    font-weight: bold;
}

.navbar ul {
  /* list-style-type: none; */
  margin: 0;
  padding: 0;

  width: 100%;
}

.navbar li {
  float: left;
}

.navbar li.title {
  display: block;
  color: lightblue;
  text-align: center;
  padding: 14px 16px;
   
}

.navbar li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.navbar li a:hover:not(.active) {
  background-color: blue;
}

.navbar active {
  background-color: navy;
}


.inline-field {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between label and input */
}

.inline-field label {
    white-space: nowrap;
    min-width: 100px; /* optional fixed label width */
}

/* Forms */
form {
    max-width: 500px;
    margin: 0 auto 30px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form input[type="password"],
form input[type="search"],
form input[type="date"],
form input[type="time"],
form input[type="datetime-local"],
form select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.width-30 {
    width: 30%;
    max-width: 300px; /* Optional: cap width for better responsiveness */
    box-sizing: border-box; /* Ensures padding/border don't exceed width */
}
.width-40 {
    width: 40%;
    max-width: 300px; /* Optional: cap width for better responsiveness */
    box-sizing: border-box; /* Ensures padding/border don't exceed width */
}

form label {
    font-weight: bold;
}

form input:focus,
form select:focus {
    border-color: navy;
    outline: none;
}

.button-container {
    display: flex;
    justify-content: center; /* center buttons horizontally */
    gap: 15px;               /* space between buttons */
    margin-top: 20px;        /* spacing above container */
    flex-wrap: wrap;         /* wrap buttons if screen is narrow */
}

.button-containerfooter {
    display: flex;
    justify-content: center; /* center buttons horizontally */
    flex-wrap: wrap;         /* wrap buttons if screen is narrow */
}

button {
    padding: 8px 8px;
    font-size: 1rem;
    color: white;
    background-color: navy;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: blue;
}

.dropdown-results {
    border: 1px solid #ccc;
    background: white;
    position: absolute;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 90%;
}

.dropdown-results div {
    padding: 6px;
    cursor: pointer;
}

.dropdown-results div:hover {
    background: #eee;
}

/* Messages */
.message {
    display: block;      /* Make span behave like a block element */
    text-align: center;  /* Center the text */
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: blue;     /* Success color */
}

.message.error {
    color: red;
    text-align: center;
}

.message.close {
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    color: steelblue;
}

section .message {
    text-align: center;
}

form .message {
    text-align: center;
}

.footer-center {
    text-align: center; 
    font-size: 0.9em; 
    color: gray;">
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;

}

.footer-img {
    height: 40px;
}