/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    
    font-size: 20px;
}

@keyframes marching-ants {
    0% {
      border-image-slice: 1;
      border-image-source: repeating-linear-gradient(
        45deg,
        white 0px,
        white 2px,
        transparent 2px,
        transparent 4px
      );
    }
    100% {
      border-image-slice: 1;
      border-image-source: repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 2px,
        white 2px,
        white 4px
      );
    }
  }

.vendor-autocomplete-wrapper {
  display: none;
  align-items: center;
  position: relative;
}

.vendor-autocomplete-input {
  width: 100%;
  padding: 8px;
  font-size: 16px;
}

  /* Email Options Styling */
#emailOptions {
    max-width: 600px;
    width: 90%;
    margin: 30px auto !important;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center; /* ✅ Center content inside the box */
}

body.dark-mode #emailOptions {
    background: #1e1e1e;
    border-color: #333;
}

#emailOptions label {
    display: flex;
    align-items: center;
    justify-content: center; /* ✅ center checkbox + text */
    font-size: 18px;
    margin: 10px 0;
    gap: 8px;
    text-align: center;
}


body.dark-mode #emailOptions label {
    color: #f4f4f9;
}

#sendSelectedEmails {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#sendSelectedEmails:hover {
    background-color: #218838;
}

body.dark-mode #sendSelectedEmails {
    background-color: #3aa45f;
}

body.dark-mode #sendSelectedEmails:hover {
    background-color: #2d8a4c;
}
  
.epace {
    width: 4ch !important; /* 4 character width */
}  
  
/* Title and Labels */
h2, h4, p {
    color: #0056b3;
}

#subcontractorCompanyContainer {
    width: 95%;
    max-height: 150px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);   
    margin: 0 auto;
    display: block; /* <- or remove flex entirely */
}



#vendorEmailContainer {
  width: fit-content;
  box-sizing: border-box; /* ensures padding/border don't exceed the width */
  overflow-wrap: break-word; /* wraps long emails or text */
  word-break: break-word;    /* breaks long strings if necessary */
}


input.city {
    border: 2px solid white;
    border-radius: 6px; /* optional: for a cleaner look */
    padding: 8px;       /* optional: for spacing inside the input */
    background-color: transparent; /* optional: keep background clear */
    color: white;       /* optional: if using dark backgrounds */
  }


.vendor-autocomplete-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    background: grey !important;
    border: 1px solid #ccc !important;
    max-height: 450px !important;
    overflow-y: auto !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    font-size: 24px !important;
}

.signature-container {
    display: flex;
    align-items: center;
    padding-top: 10px;
    font-family: Arial, sans-serif;
    max-width: 500px;
    margin-left: 40%;
}

.signature-logo {
    width: 80px;
    height: auto;
    margin-right: 10px;
}

.signature-content {
    flex: 1;
}

input {
    font-size: 24px;
    padding: 3px;
    background-color: transparent; 
    border: 1px solid grey; 
    color: white;
}

@media (prefers-color-scheme: dark) {
  #labelManagement {
    color: #eee;
  }
}

a {
    color: #004AAD;
    text-decoration: none;
    font-weight: bold;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    margin-right: 10px; /* Space between the switch and the label */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

/* Dark Mode Toggle Container */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the toggle on the page */
    margin: 20px 0;
    gap: 15px; /* Add gap between the switch and label */
}

/* Toggle Label */
#toggleLabel {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}

#bidInputContainer {
  margin-top: 10px;
}

body.dark-mode #toggleLabel {
    color: #f4f4f9;
}


/* Email Template Container */
#emailTemplate {
    max-width: 1540px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dynamic Elements */
.subdivisionContainer,
.builderContainer,
.branchContainer,
.briqProjectTypeContainer,
.materialTypeContainer,
.valueContainer,
.numberOfLotsContainer,
.AnticipatedDurationContainer,
.anticipatedStartDateContainer {
    font-weight: bold;
    color: #007bff;
}
.branchContainer{
    color: rgb(54, 52, 52);
}
/* Buttons */
button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #1d1c1c;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

#bidNameInput,
#emailTemplate .bid-autocomplete-input {
  display: block;
  margin: 20px auto;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #bbb;
  border-radius: 6px;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.autocomplete-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Dynamic Container */
#dynamicContainer {
    margin-top: 20px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

/* Highlight for Major Wins Section */
h4 {
    margin: 20px 0;
    padding: 10px; 
}
/* Scrollable Dropdown */
.autocomplete-dropdown {
    max-height: 500px; /* Limit the height of the dropdown */
    overflow-y: auto; /* Enable vertical scrolling */
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%; /* Match the input field's width */
    font-size: 25px;
    z-index: 1000; /* Ensure it stays above other elements */
}

/* Wrapper to position dropdown properly */
.autocomplete-wrapper {
    position: relative;
}
/* Buttons */
.btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  cursor: pointer;
  background: #fff;
  font-weight: 600;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Subtle status text */
.muted-sm { color:#667085; font-size:.9rem; }


/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #f4f4f9;
}

/* Containers */
#emailTemplate,
.translate-container {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
}

body.dark-mode #emailTemplate,
body.dark-mode .translate-container {
    background-color: #1e1e1e;
    color: #f4f4f9;
    border-color: #333;
}

/* Inputs and Textareas */
input[type="text"],
textarea {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    font-size: 25px;
}

body.dark-mode input[type="text"],
body.dark-mode textarea {
    background-color: transparent;
    color: #f4f4f9;
    font-size: 25px;
}

body.dark-mode button {
    background-color: #444;
    color: #fff;
    padding: 10px 20px;
}

body.dark-mode button:hover {
    background-color: #666;
}

/* Dropdown */
.autocomplete-dropdown {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
}

body.dark-mode .autocomplete-dropdown {
    background-color: #1e1e1e;
    color: #f4f4f9;
    border-color: #333;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    margin: 10px 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #007bff;
}

body.dark-mode input:checked + .slider {
    background-color: #555;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

/* Scrollbar */
body.dark-mode ::-webkit-scrollbar {
    width: 8px;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* Dark Mode Text */
body.dark-mode h2, 
body.dark-mode h4, 
body.dark-mode p {
    color: #ffffff; /* White for dark mode */
}

/* Spinner for autocomplete loading */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid #ccc;
  border-top: 3px solid #3a78e4;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* (Optional) style for disabled autocomplete input */
.autocomplete-input[disabled] {
  background: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
}

.autocomplete-loading {
  margin: 8px 0 0 0;
  color: #888;
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
}
.suggestions-box {
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    position: absolute;
    width: 200px;
    z-index: 1000;
}
.suggestion-item {
    padding: 8px;
    cursor: pointer;
}
.suggestion-item:hover,
.suggestion-item.selected {
    background: #007bff;
    color: white;
}
.suggestion-item {
  padding: 6px 10px;
  cursor: pointer;
}

.suggestion-item.selected {
  background: #007bff;  /* Blue highlight */
  color: #fff;          /* White text */
}

.suggestion-item:hover {
  background: #e0e0e0;  /* Light gray hover */
}
.autocomplete-option.highlighted {
  background-color: #007bff;
  color: white;
}
.autocomplete-option.selected {
    background-color: #007BFF;  /* blue highlight */
    color: white;
}
/* === Adaptive Loader === */
#vanirLoaderOverlay {
  position: fixed; inset: 0; background: rgba(16,24,40,.6);
  display: flex; align-items: center; justify-content: center; z-index: 99999;
}
.vanir-loader-card {
  width: min(560px, 92vw); background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 18px 18px 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.vl-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.vl-title { font-weight:700; font-size: 18px; color:#0b1727; }
.vl-sub { color:#667085; font-size:13px; }
.vl-bar { height: 10px; background:#eef2f6; border-radius:999px; overflow:hidden; margin:10px 0 8px; }
.vl-fill { height:100%; width:0%; background:#1a73e8; transition: width .25s ease; }
.vl-meta { display:flex; justify-content:space-between; font-size:12px; color:#475467; margin-bottom:10px; }
.vl-rows { font-variant-numeric: tabular-nums; }
.vl-eta { font-variant-numeric: tabular-nums; }
.vl-steps { background:#f8fafc; border:1px solid #eef2f6; border-radius:10px; padding:8px; }
.vl-step { display:flex; align-items:center; gap:8px; font-size:13px; color:#344054; padding:6px 4px; }
.vl-dot { width:8px; height:8px; border-radius:50%; background:#cbd5e1; }
.vl-step.active .vl-dot { background:#1a73e8; }
.vl-step.done .vl-dot { background:#12b76a; }
.vl-step small { color:#667085; margin-left:auto; }
.vendor-actions .btn-secondary,
.vendor-actions .btn-tertiary {
  font-size: 14px;
  line-height: 1.2;
}
