/* Load Gilroy font from a Google Fonts alternative */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap"); /* Poppins as a substitute for Gilroy */

:root {
  --primary-color: #717940;
  --secondary-color: #D27440;
  --background-color: #EEEEE;
  --text-color: #333333;
  --hover-color: #e8f4fd;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
}


 body {
  font-family: Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 100%;
  padding: 12px;
  background-color: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  border: none; /* No default border for the table */
}

th,
td {
  padding: 6px 4px;
  text-align: left;
  border: none; /* Remove all borders by default */
  vertical-align: top; /* Align content to the top of each cell */
}

thead tr {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
}

thead th {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

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

tbody tr:hover {
  background-color: var(--hover-color);
  transition: var(--transition);
}

/* Button Styling */
.button,
.confirm-button {
  width: 50%;
  display: block;
  padding: 16px;
  margin: 16px auto;
  background-color: #717940;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  border-radius: 0;
  transition: var(--transition);
}

.button:hover,
.confirm-button:hover {
  background-color: #5B6136;
}

/* Message Box Styling */
.message-box {
  color: black;
  font-weight: 500;
  margin: 20px auto;
  padding: 16px;
  background-color: #f0f0f0;
  max-width: 80%;
  text-align: center;
  font-size: 16px;
  display: block;
}

/* Styling for title row and details row to visually separate them with a border */
.expanded,
.details-row {
  border-left: 1px solid black;
  border-right: 1px solid black;
  transition: var(--transition);
}

.expanded {
  border-top: 1px solid black;
}

.details-row td {
  border-bottom: 1px solid black;
  padding-top: 8px;
  border-top: none; /* Ensure no border between the original row and the details */
}

/* Additional Styles */
.error-message,
.success-message {
  margin: 10px 0;
  color: black;
}

.error-message {
  color: red;
}

.success-message {
  color: black;
}

.datepicker-container {
  margin-top: 10px;
}

.logo-container {
  text-align: center;
  margin-top: 20px;
}

.logo-container img {
  width: 25%;
  max-width: 300px;
}

/* Centering the label for the datepicker and ensuring consistent styling */
.datepicker-label {
  display: block;
  text-align: center;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 16px;
}

/* Styling for the date picker input field */
.datetime-input {
  width: 50%;
  padding: 16px;
  margin: 16px auto;
  display: block;
  border: 1px solid var(--border-color);
  font-size: 16px;
  transition: var(--transition);
}

.datetime-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.footer {
  font-size: 12px;
  padding-top: 8px;
}

/* Media Query for Mobile */
@media (max-width: 390px) {
  /* iPhone 13 width */
  .container {
    padding: 12px;
  }

  th,
  td {
    padding: 8px 4px;
    font-size: 16px;
  }

  .button,
  .confirm-button {
    width: 80%;
    padding: 12px;
    font-size: 16px;
  }

  .datetime-input {
    font-size: 16px;
  }

  .message-box {
    font-size: 16px;
    padding: 16px;
  }
}

.flat-separator {
  width: 50%; /* Make it the same width as the buttons */
  height: 1px; /* Thin, flat line */
  background-color: #e8f4fd; /* Match the hover color */
  border: none; /* Remove any default borders */
  margin: 16px auto; /* Align with the button and provide sufficient padding */
  box-shadow: none; /* Remove any shadow effect */
}

.phone-link {
  text-decoration: none; /* Removes underline */
  color: inherit; /* Optionally use inherit to maintain text color consistency */
}

.phone-link:hover {
  text-decoration: none; /* Ensure no underline appears on hover */
}

.flown-status {
  color: grey;
}

.cancelled-status {
  color: grey;
  text-decoration: line-through;
}

.disabled {
  background-color: #d3d3d3; /* Light grey */
  cursor: not-allowed;
}

/* Define the darker grey on mouseover */
.disabled:hover {
  background-color: #a9a9a9; /* Darker grey */
}

/* Style for the notes to make them stand out */
.note-box {
  background-color: #fff9c4; /* Light yellow background like a sticky note */
  border-left: 4px solid #fbc02d; /* Bright yellow border to highlight it */
  padding: 10px 15px; /* Add some padding */
  margin-bottom: 15px; /* Space below the note */
  border-radius: 0px; /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  white-space: pre-line;
  font-size: 12px;
}

.note-box strong {
  font-style: normal; /* Keep the "Notes to Pilot" title bold and non-italic */
  display: block; /* Ensure the title is on its own line */
  margin-bottom: 5px; /* Space below the title */
}

.note-box .note-icon {
  margin-right: 5px;
}

/* Apply to all table cells within rows that have the 'break' class */
tr.break td,
tr.break th {
    overflow-wrap: break-word; /* Allows breaking long words */
    word-break: break-word;    /* Similar to overflow-wrap */
    white-space: normal;       /* Enables normal text wrapping */
}

tr.left-column td,
tr.column th {
    column-width: 30% !important;
}

/* Picker Updates */
/* Center the picker and stack its elements */
.picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0;
}

/* Style the datetime input */
.picker .dt-input {
  width: 80%;
  max-width: 280px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 0px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Override the confirm-button to center it and size it nicely */
.picker .confirm-button,
.picker .save-resched {
  margin-top: 8px;
  padding: 10px 20px;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
}

/* Remove all black borders on expand/details rows */
.expanded,
.details-row {
  border-left: none !important;
  border-right: none !important;
}

.expanded {
  border-top: none !important;
}

.details-row td {
  border-bottom: none !important;
}
