/* asfstyle.css - CSS style sheet for ASF mentor app                          */
/*                                                                            */

/* -------------------------------------- Classes ----------------------------*/

*.bold {
  font-weight: bold;
}

*.button {
  background-color: #e6d8d1;
  font-weight: bold;
  margin: 10px;
}

*.center {
  text-align: center;
}

.container {
  display: grid;
  column-gap: 20px;
  grid-template-columns: 50% 50%;
}

.item1 {
    grid-column: 1 / 1;
}

.item2 {
    grid-column: 2 / 2;
}

.full-width {
      grid-column: 1 / -1;
}

*.error {
  color: darkred;
  margin: any;
  text-align: center;
}

error {
  color: darkred;
  margin: any;
  text-align: center;
}

*.heading {
  font-weight: bold;
  background-color: #e6d8d1;
  font-size: medium;
  text-align: center;
}

*.label {
  font-weight: bold;
  background-color: #e6d8d1;
  font-size: medium;
  text-align: left;
}

*.logo {
  margin-right: 3%;
}

*.noborder {
  border-style: none;
}

*.table {
  font-size: 12px;
  width: 40em;
}

.field-row {
  display: flex; 
  gap: 20px; 
  margin-bottom: 10px;
}

/* Container for the form */
.form-container {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 800px;
  align-items: center;
  justify-content: center;
  margin: auto;
  margin-top: 2em;
}

/* Adds space between form elements */
.form-group {
  margin-bottom: 1.5rem;
}

/* Styles for the labels above the input fields */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;

}

/* Styles for the text input fields */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  /* Ensures padding doesn't affect width */
  font-size: 1rem;
}

/* Styles for the text input fields */
.form-input-half {
  width: 40%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  /* Ensures padding doesn't affect width */
  font-size: 1rem;
}


.form-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* General styles for both buttons */
.form-button {
  flex-grow: 1;
  /* Makes both buttons share the space equally */
  display: block;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

/* Container for the buttons to align them nicely */
.button-group {
  display: flex;
  gap: 1rem;
  /* Creates space between the buttons */
}

.header-buttons {
    /* Sizing and Color */
  width: 100%;
  height: 0.75in;
  background-color: #bd7440;
  padding-left: 1rem;

  /* Flexbox for Centering */
  display: flex;
  align-items: center;
  justify-content: left;

  /* Text Styling */
  color: white;
  font-weight: bold;
  font-size: 1.25rem;

  /* Shadow Effect */
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.header-no-buttons {
    /* Sizing and Color */
  width: 100%;
  height: 0.75in;
  background-color: #bd7440;
  padding-left: 1rem;

  /* Flexbox for Centering */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Text Styling */
  color: white;
  font-weight: bold;
  font-size: 1.25rem;

  /* Shadow Effect */
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}


.header-button {
  background-color: white;
  color: #bd7440;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.sized-checkbox {
    width: 30px;
    height: 30px;
    vertical-align: middle;
  }

/* Specific styles for the "Login" button */
.login-button {
  background-color: #bd7440;
  color: white;
}

.login-button:hover {
  background-color: #0056b3;
}

/* Specific styles for the "Cancel" button */
.cancel-button {
  background-color: #6c757d;
  color: white;
}

.cancel-button:hover {
  background-color: #5a6268;
}

/* Container for the buttons to align them nicely */
.menu-button-group {
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  gap: 1rem;
  /* Creates space between the buttons */
}


/* General styles for both buttons */
.menu-button {
  flex-grow: 1;
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

/* Style of numberic input fields for money */
.money {
  text-align: right;
}

/* Hidden by default */
.hidden {
  display: none;
}

/* The Spinner Ring */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #3498db; /* The "action" color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

/* The Rotation Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Optional: Center the loader on screen */
#loader {
  text-align: center;
  font-family: sans-serif;
  color: #555;
}

/* ---------------------------  ID Styles ----------------------------------- */

#fullpage {
  max-width: 50em;
}

/* Style the table container */
#table-container {
  /* Set a fixed height smaller than the table's full height */
  height: 350px; 
  
  /* This is the key: it adds a vertical scrollbar if content overflows */
  overflow-y: scroll; 
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%; /* Make it responsive */
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 12px;
}

/* ---------------------------  Element Styles ------------------------------ */

article {
  margin-left: 7%;
  margin-right: 10%;
  background-color: #ffffff;
  padding: 2rem;
  margin-top: 2em;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: large;
  background-color: #f0f2f5;
}

button:disabled {
  /* Make the background gray */
  background-color: #f0f0f0;

  /* Change the text color to a lighter gray */
  color: #999;

  /* Change the cursor to a "not-allowed" symbol on hover */
  cursor: not-allowed;

  /* Optional: Lighten the border */
  border-color: #ccc;
}

caption {
  font-weight: bold;
  font-size: 1em;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

dt {
  margin-inline-start: 0;
  padding-bottom: 20px;
  padding-top: 20px;
  font-weight: bold;
}

em {
  font-style: italic;
}

footer {
  width: 100%;
  height: 0.75in;
  /* Flexbox for Centering */
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  font-weight: bold;
  color: #000000;
  vertical-align: middle; 
  width: 100%;
  margin-top: 0.25in;
  text-align: center;
  font-size: 1.5rem; 
  display: flex;
  align-items: center;
  justify-content: center;
}

h2 {
  font-weight: bold;
  font-size: 1em;
  margin-top: 1em;
  margin-bottom: 0.75em;
}

label {
  display: block;
  margin-top: 10px;
  width: 150px;
}

li {
  margin-top: 1em;
}

input {
  display: block;
}

ol {
  list-style: decimal outside none;
  margin-inline-start: 0;
  padding-inline-start: 40px;
}

p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

strong { 
  font-weight: bold; 
}

/* Basic table styling */
table {
  width: 100%;
  border-collapse: collapse; /* Clean borders */
  border-radius: 8px;
}

td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

/* Sticky header */
th {
  background-color: #bd7440;
  border: 1px solid white;
  color: white;
  font-weight: bold;
  position: sticky; /* Makes the header "stick" to the top when scrolling */
  top: 0;
  padding: 8px;
  text-align: left;
}

ul {
  list-style: disc outside none;
  margin-inline-start: 0;
  padding-inline-start: 40px;
}
