/* 
6/6/25 
========================================
containers, headers, and inputs 
========================================
*/
/* ensure the form is centered and elements take full width */
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
}
/* Container styles */
.container-fluid {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  margin-right: 0;
  margin-left: 0;
}
.row {
  width: 100%;
  margin: 0;
  padding: 0;
}
.col, [class*="col-"] {
  padding: 0;
}
.input-container {
  width: 97%;
  margin-bottom: 10px;
}
.input-group-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-right: 0;
}

/* Ensure all form elements take full width */
input, select, textarea {
  width: 97%;
  box-sizing: border-box;
}
.record-header {
  background-color: #002d57;
  color:rgb(255, 250, 250);
  font-weight: bolder;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  border-radius: 4px;
  padding-left: 10px;
}
.file-upload-wrapper {
  border: 1px solid #2d94f5;
  border-radius: 15px;
  padding: 25px;
  background-color: #2d94f5;
  margin-top: 10px;
  margin-bottom: 10px;
}
.two-factor-code-type {
  position: fixed;
  display: inline-block;
  font-weight: bold;
  width: auto;
  margin-left: 5px;
  margin-top: -13px;
  padding-bottom: 25px;
  padding-top: 15px;
  background-color: transparent;
  color: rgb(149, 147, 147);
  border: 0;
  border-radius: 0;
  pointer-events: none;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden; /* Hide overflowed content */
  text-overflow: ellipsis;
}
/* centering the main content */
.mask {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%; /* Ensure it takes full width */
  background-color: rgba(0, 0, 0, 0.3); /* Set the background color */
}
::placeholder {
  color: #2d94f5;
  font-weight: normal;
  letter-spacing: 0.01em;
  font-size: 1.125rem;
  position: absolute;
  bottom: 0;
  transform: translateY(50%);
}
/* google-autocomplete */
.pac-container { z-index: 9999 !important; /* Ensure it's on top */ }
/*  toast  */
@media only screen and (max-width: 600px) { #sendTerm_client { width: 100%; } }
@media only screen and (min-width: 600px) { #sendTerm_client { width: 100px; } }

/* [NEW] Mobile-specific styles for glossary sections */
@media (max-width: 600px) {
  /* Reduce spacing between search elements on mobile */
  #glossary_public_section .col-12,
  #glossary_client .col-12 {
    margin-top: 0.5rem !important; /* Reduce from mt-5 to smaller gap */
  }
  
  /* Override the mt-5 classes specifically for mobile */
  #glossary_public_section .mt-5,
  #glossary_client .mt-5 {
    margin-top: 0.75rem !important;
  }
  
  /* Glossary search inputs on mobile */
  #glossary_public_section .form-outline,
  #glossary_client .form-outline {
    margin-bottom: 0.5rem;
  }
  
  /* Glossary select dropdowns on mobile */
  #glossary_public_section select,
  #glossary_client select {
    margin-bottom: 0.5rem;
  }
  
  /* Glossary search buttons on mobile */
  #search_advanced_btn_public,
  #search_advanced_btn_client,
  #search_advanced_btn_lausd,
  #search_advanced_btn_admin,
  #search_advanced_btn_vendor {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 0.5rem auto;
    padding: 0.75rem;
  }
  
  /* Improve touch target size for mobile */
  #glossary_public_section .btn,
  #glossary_client .btn {
    min-height: 44px;
    font-size: 1rem;
  }
  
  /* [NEW] Prevent horizontal scrolling on mobile */
  #glossary_public_section,
  #glossary_client,
  section[id*="glossary"] {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  /* [NEW] Table wrapper mobile styles */
  #glossary_public_section .table-responsive,
  #glossary_client .table-responsive,
  .table-responsive {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    border: none !important;
  }
  
  /* [NEW] Ensure rows don't overflow */
  #glossary_public_section .row,
  #glossary_client .row {
    margin: 0 !important;
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
}

/* [NEW] Desktop-specific fixes for button height alignment */
@media (min-width: 601px) {
  /* Make search buttons same height as MDB form controls */
  #search_advanced_btn_public,
  #search_advanced_btn_client,
  #search_advanced_btn_lausd,
  #search_advanced_btn_admin,
  #search_advanced_btn_vendor {
    height: calc(2.1rem + 2px) !important; /* Match MDB form control height */
    padding: 0.375rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.375rem !important; /* Match MDB border radius */
    font-size: 1rem !important; /* Match MDB form control font size */
    line-height: 1.5 !important; /* Match MDB form control line height */
  }
  
  /* Ensure button container aligns properly */
  #glossary_public_section .d-flex,
  #glossary_client .d-flex {
    align-items: stretch !important;
    height: 100% !important;
  }
}
/* 
========================================
end of containers, headers, and inputs
========================================
*/


/* 
========================================
bid-inputs
========================================
*/
.bid-details-input,
.bid-amount-input {
  /* Base styles */
  width: 100%;
  height: 50px;
  font-size: 17px;
  text-align: left;
  box-sizing: border-box;
  border: 1px solid #2d94f5; /* Match form border color theme */
  border-radius: 15px; /* Match form border radius theme */
  position: relative;
  padding-left: 15px;
}
/* Remove duplicate selector and conflicting width */
.bid-details-input.form-select,
.bid-amount-input.form-select {
  width: 100%;
  height: 50px;
  font-size: 17px;
  position: relative;
  text-align: left;
  box-sizing: border-box;
  border: 1px solid #2d94f5; /* Match form border color theme */
  border-radius: 5px; /* Match form border radius theme */
  transform: translateY(50%);
  padding-left: 15px;
}
/* Placeholder styling */
.bid-details-input::placeholder,
.bid-amount-input::placeholder {
  text-align: left;
  pointer-events: none; 
  font-size: 0.875rem;
  color: #2d94f5; /* Match form color theme */
  position: relative;
  bottom: -6px;
  transform: translateY(50%);
}
/* [MODIFIED] Add date input placeholder styling to bid-amount-input */
.bid-amount-input[type="date"] {
  position: relative;
}
.bid-amount-input[type="date"]::-webkit-datetime-edit {
  color: transparent; /* Hide the default date text */
}
.bid-amount-input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  visibility: hidden; /* Hide the date fields */
}
.bid-amount-input[type="date"]::-webkit-inner-spin-button,
.bid-amount-input[type="date"]::-webkit-calendar-picker-indicator {
  display: none; /* Hide the calendar picker */
}
.bid-amount-input[type="date"]::before {
  content: attr(placeholder);
  color: #2d94f5;
  font-weight: normal;
  letter-spacing: 0.01em;
  font-size: 0.875rem;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* Ensure clicks pass through to the input */
}
.bid-amount-input[type="date"]:focus::before {
  display: none; /* Remove placeholder when focused */
}
/* Add responsive adjustments */
@media (max-width: 768px) {
  .bid-details-input,
  .bid-amount-input {
    width: 100%;
    /* margin: 2px 2px; */
  }
}
/* [MODIFIED] Select placeholder fix - JavaScript version */
.bid-details-input.form-select {
  color: #2d94f5 !important;
  font-size: 0.875rem !important;
  width: 92%;
  top: -25px;
  bottom: 20px;
  position: relative;
  padding-left: 10px;
}
.status-assignment-input,
.status-bid-container {
  display: flex;
  margin-top: 2px;
  margin-left: 2px;
  margin-bottom: -20px;
  gap: 5px;
  flex-direction: row;
  flex-wrap: wrap;
  width: 97%;
  align-items: flex-start;
}
/* Form element base styles */
.status-bid-container input,
.status-bid-container select,
.status-assignment-input {
  width: 100% !important; /* Make elements full width */
  max-width: none !important; /* Remove max-width restriction */
  height: 50px !important;
  font-size: 17px !important;
  border: 1px solid #2d94f5;
  border-radius: 15px;
  text-align: center;
  margin-left: 0px;
  padding-left: 15px;
  color: #ffffff;
  padding-top: 20px;
}
/* Form select specific styles */
.status-bid-container .form-select {
  width: 97%;
  max-width: none; /* Remove max-width restriction */
  margin-bottom: 0;
}
/* Button and input specific styles */
.status-bid-container .bid-amount-input,
.status-bid-container .action-btn {
  font-size: 1rem;
  margin: 0;
  width: 100%;
  max-width: none; /* Remove max-width restriction */
}
/* Mobile responsive styles */
@media (max-width: 768px) {
  .status-assignment-input,
  .status-bid-container {
    width: 97%;
    flex-direction: column !important;
  }

  .status-bid-container input,
  .status-bid-container select,
  .status-bid-container .action-btn,
  .status-assignment-input,
  .input-group-container,
  .button-group-container {
    width: 97% !important;
    max-width: 97% !important;
  }

  .status-bid-container .action-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}
/* [NEW] Focus State for Inputs with Labels */
.status-bid-container input:focus + label,
.status-bid-container input:not(:placeholder-shown) + label {
  position: absolute;
  color: rgb(148, 147, 147);
  background: transparent; 
  font-weight: 500;
  font-size:small;
  font-style: italic;
  margin-top: -3px;
  padding-left: 3px;
  pointer-events: none;
  white-space: nowrap;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: all 0.2s ease-in-out;
}
/* 
========================================
end of bid-inputs
========================================
*/


/* 
========================================
Full-Calendar
========================================
*/
#calendar-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 10px;
  position: relative;
  min-height: 50vh; /* Minimum height */
  max-height: 80vh; /* Maximum height */
  overflow: auto; /* Scroll if necessary */
}
#calendar {
  width: 100%;
  height: 100%; /* Ensure the calendar fills the container */
}
.fc-header-toolbar {
  /*
  the calendar will be butting up against the edges,
  but let's scoot in the header's buttons
  */
  padding-top: 1em;
  padding-left: 1em;
  padding-right: 1em;
}
/* 
========================================
end of Full-Calendar
========================================
*/

/* 
========================================
Mobile Glossary Cards - Performance Optimized
========================================
*/
.mobile-glossary-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s ease;
  will-change: transform; /* Optimize for animations */
}

.mobile-glossary-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mobile-glossary-field {
  margin-bottom: 12px;
}

.mobile-glossary-field:last-child {
  margin-bottom: 0;
}

.mobile-glossary-label {
  font-weight: 600;
  color: #666;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 4px;
}

.mobile-glossary-value {
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.mobile-glossary-value:hover {
  background: #e9ecef;
}

.mobile-glossary-value:active {
  background: #dee2e6;
}

/* Loading indicator for lazy loading */
.glossary-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* Optimize rendering performance */
#mobile_results_client,
#mobile_results_lausd,
#mobile_results_vendor,
#mobile_results_admin,
#mobile_results_public {
  contain: layout style; /* CSS containment for better performance */
}

/* 
========================================
end of Mobile Glossary Cards
========================================
*/

