/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.modal-overlay.active, .modal-overlay[style*="display: flex"] {
  display: flex !important;
}
.modal-content {
  background: white;
  padding: 25px 40px;
  border-radius: 20px;
  max-width: 560px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
  left: 0;
  right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-content::-webkit-scrollbar {
  display: none;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 4px;
  transition: color 0.2s ease;
}
.modal-close:hover {
  color: #333;
}
.modal-form {
  margin-top: 15px;
}
.form-group {
  margin-bottom: 10px;
}
.form-group label {
  display: block;
  margin-bottom: 3px;
  color: #333;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  background-color: #f5f5f5;
  transition: background-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  background-color: #eaeaea;
  outline: none;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
  background-color: #f0f0f0;
}
.form-submit {
  width: 100%;
  padding: 8px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}
.form-submit:hover {
  background-color: #45a049;
}

/* Confirmation Modal Buttons - Use same style as .form-submit */
#confirmation-footer .form-submit {
  width: auto;
  padding: 10px 22px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 0;
  margin-top: 0;
  transition: background-color 0.3s;
  font-size: 16px;
  display: inline-block;
}
#confirmation-footer .form-submit:hover {
  background-color: #45a049;
}

#confirmation-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

#confirmation-modal .modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#confirmation-header h2 {
  text-align: center;
  color: #388E3C;
  margin-bottom: 12px;
}

#confirmation-body p {
  text-align: center;
  margin-bottom: 10px;
}

#my-cal-inline {
  display: none;
  margin-top: 16px;
}

/* Pricing Pod Styles */
.pricing-pod {
  transition: all 0.3s ease;
  cursor: pointer; /* Ensure pointer cursor */
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(33, 33, 33, 0.425);
  backdrop-filter: blur(10px);
  color: white;
  flex: 1;
  max-width: 300px;
  padding: 12px;
}
.pricing-pod h2 {
  color: white; 
  border-color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}
.pricing-pod h2 strong {
  color: white;
}
.pricing-pod p {
  color: rgba(255, 255, 255, 0.9);
}
.pricing-pod span {
  color: #ffffff;
}
.pricing-pod.active {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.pricing-pod.inactive {
  opacity: 0.8;
}
.pricing-pod:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.pricing-pod label {
  color: white;
}

/* Style for the selected pricing pod */
.pricing-pod.selected {
  border: 2px solid #4CAF50; /* Green border to indicate selection */
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5); /* Optional glow effect */
  background: rgba(76, 175, 80, 0.2); /* Slight green background tint */
}

/* Ensure non-selected pods don't have the selected style */
.pricing-pod:not(.selected) {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* Pricing Pods Container */
.pricing-pods {
  position: absolute; 
  bottom: 20px; 
  left: 50%; 
  transform: translateX(-50%); 
  display: flex; 
  gap: 12px; 
  z-index: 5; 
  width: 95%; 
  justify-content: center;
  max-width: 60%;
}

/* For larger screens (Full HD and above) */
@media screen and (min-width: 1920px) {
  .pricing-pods {
    max-width: 64%;
  }
}

/* Make the 2D and 3D pods wider */
#card-custo-2d, #card-custo-3d {
  flex: 2; /* These pods take twice as much space */
}

/* Reduce the width of the #card-custo-3d pod */
#card-custo-3d {
  max-width: 500px; /* Set explicit max-width as requested */
}

/* Reduce line height specifically within the 3D pricing pod */
#card-custo-3d p {
  line-height: 1.12; /* 80% of 1.4 */
}

/* Styles related to removed cards cleaned up */
/* Studio Button Styles */
.studio-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  white-space: nowrap; /* Prevent text wrapping */
  min-width: 150px; /* Ensure minimum width */
}
.studio-button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}
.studio-button.selected {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Removed commented-out Rube Draco styles */

/* Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #4CAF50;
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* Configuration Summary */
.configuration-summary {
  margin-top: 10px;
  margin-bottom: 12px;
  text-align: center;
}
.configuration-summary h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #333;
  text-align: center;
  line-height: 1;
}
.configuration-summary p {
  margin: 1px 0;
  line-height: 1.2;
  font-size: 14px;
}

/* Form Step Styles */
.form-step p {
  margin: 8px 0;
  line-height: 1.4;
}
.form-step ul {
  margin: 8px 0;
  padding-left: 20px;
}
.form-step li {
  margin: 4px 0;
}

/* Global Reset and Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  height: 100vh;
  overflow: hidden;
  width: 100%;
}
p {
  margin: 8px 0;
  line-height: 1.4;
}
h2 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  color: #333;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

/* Left Sidebar with responsive width */
#controls {
  width: 20%; /* Default for smaller screens */
  padding: 20px 20px 10px; /* Reduced bottom padding */
  background: #fff;
  height: 100%;
  overflow-y: auto;
  box-shadow: 2px 0 6px rgba(0,0,0,0.1);
}

/* For screens smaller than Full HD, reduce spacing in left sidebar */
@media screen and (max-width: 1919px) {
  /* Reduce header spacing */
  #controls h3 {
    margin-top: 8px;
    margin-bottom: 5px;
    font-size: 0.95em;
  }
  
  /* Reduce card spacing */
  #controls .control-card {
    margin-bottom: 8px;
    padding: 10px;
  }
  
  /* Reduce slider container spacing */
  #controls .slider-container {
    margin-bottom: 3px;
  }
  
  /* Reduce paragraph spacing */
  #controls p {
    margin: 3px 0;
    font-size: 0.92em;
  }
  
  /* Adjust the 'Produção Virtual em:' section */
  #controls h3:last-of-type {
    margin-top: 4px;
    margin-bottom: 4px;
  }
  
  /* Make sliders more compact */
  #controls input[type="range"] {
    margin: 4px 0;
    height: 5px;
  }
  
  /* Reduce spacing in module count information */
  #controls #led-controls h3 + p,
  #controls #teto-controls h3 + p {
    margin-top: 2px;
    margin-bottom: 2px;
  }
  
  /* Make the value displays more compact */
  #controls .value-display {
    font-size: 0.9em;
    margin: 2px 0;
  }
}

/* For larger screens (Full HD and above) */
@media screen and (min-width: 1920px) {
  #controls {
    width: 18%;
    padding: 20px;
  }
}
#controls::-webkit-scrollbar {
  display: none;
}

/* Center Column with responsive width */
#canvas-container {
  width: 60%; /* Default for smaller screens */
  height: 100%;
  background-color: #e9ecef;
  position: relative;
  overflow: hidden;
  z-index: 1;
  clip-path: inset(0);
}

/* For larger screens (Full HD and above) */
@media screen and (min-width: 1920px) {
  #canvas-container {
    width: 64%;
  }
}

/* Ensure THREE.js canvas stays within its container */
#canvas-container canvas {
  position: absolute !important;
  max-width: 100% !important;
  display: block !important;
}

/* Right Sidebar with responsive width */
#info-sidebar {
  width: 20%; /* Default for smaller screens */
  padding: 20px;
  background: #fff;
  height: 100%;
  overflow-y: auto;
  box-shadow: -2px 0 6px rgba(0,0,0,0.1);
  box-sizing: border-box;
  z-index: 10;
  position: relative;
  isolation: isolate;
}

/* For larger screens (Full HD and above) */
@media screen and (min-width: 1920px) {
  #info-sidebar {
    width: 18%;
  }
}
#info-sidebar::-webkit-scrollbar {
  display: none;
}

/* New Control Card Style for Left Sidebar */
.control-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

/* Left Sidebar Control Elements */
.control-group {
  margin-bottom: 15px;
}

.control-option {
  margin: 10px 0;
}

.control-button {
  width: 100%;
  padding: 8px 12px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 4px;
}

.control-button:hover {
  background-color: #e9e9e9;
  transform: translateY(-1px);
}

.control-button.selected {
  background-color: #4CAF50;
  color: white;
  border-color: #388E3C;
}
/* Styles related to removed card children cleaned up */
/* #card-estudios child styles removed */
label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #444;
}
input[type="range"] {
  width: 100%;
  height: 12px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  border-radius: 6px;
  margin: 5px 0;
  cursor: pointer;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: #4CAF50;
  border: 2px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #4CAF50;
  border: 2px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
}

/* Bold Value Styling (applies to both sidebars) */
#module-count, #teto-module-count, #power-max, #power-avg, #total-weight, #resolution, #processors,
#teto-resolution, #teto-power-max, #teto-power-avg, #teto-total-weight {
  font-weight: bold;
  color: #000;
}

/* White text for pricing values and labels */
#total-price, #modules-price, #processors-price, #server-price, #director-price,
#total-3d-price, #rxii-units-value, #rxii-price, #tracking-price {
  font-weight: bold;
  color: #ffffff;
}

/* Right Sidebar Info Cards */
.info-card {
  background-color: var(--secondary-bg-color);
}
/* <<< ADDED Closing Brace */

/* Call to action and button styles */

/* NEW/UPDATED: Disguise Mode Selector Button Styles */
.selector-btn {
  background-color:  #5a5a5a; /* Default background similar to inactive   proposal button */
  color:  #ffffff; /* Slightly off-white for better definition */
  border: none;
  border-radius: 8px;
  padding: 10px 15px; /* Adjust padding as needed */
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-align: center; /* Center text */
  flex: 1; /* Allow buttons to share space */
}

.selector-btn:hover {
  background-color:  #6b6b6b; /* Slightly lighter on hover */
  transform: translateY(-1px);
}

.selector-btn.active {
  background-color:  #4CAF50; /* Active state matches proposal button */
  box-shadow: 0 2px 5px  rgba(0, 0, 0, 0.2); /* Optional: add subtle shadow   */
}

.selector-btn small {
  display: block;
  font-size: 0.8em;
  font-weight: bold; /* Make font bold */
  color: #ffffff; /* Ensure color is white */
  margin-top: 3px;
}

.selector-btn.active small {
    color:  #ffffff; /* Ensure small text is readable on active button */
    font-weight: bold; /* Ensure active subtitle is also bold */
}

.call-to-action {
  text-align: center;
  margin: 15px 0;
  color: #333;
  font-size: 15px;
}
#proposta-btn {
  width: 100%;
  padding: 12px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
}
#proposta-btn:hover {
  background-color: #45a049;
}

/* Date Range Container */
.date-range-container {
  display: flex;
  gap: 10px;
  align-items: center;
}
.date-range-container > div {
  flex: 1;
}
.date-range-container label {
  font-size: 0.9em;
  color: #666;
}
.date-range-container input {
  width: 100%;
  cursor: pointer;
}

/* Prelight Container */
.prelight-container {
  display: flex;
  align-items: center;
  gap: 15px;
}
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-switch span {
  font-weight: bold;
  color: #444;
}

/* Pricing Pod Styles */
.pricing-pod {
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(33, 33, 33, 0.425);
  backdrop-filter: blur(10px);
  color: white;
  flex: 1;
  max-width: none;
  padding: 12px;
}
.pricing-pod h2 {
  color: white; 
  border-color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}
.pricing-pod h2 strong {
  color: white;
}
.pricing-pod p {
  color: rgba(255, 255, 255, 0.9);
}
.pricing-pod span {
  color: #ffffff;
}
.pricing-pod.active {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.pricing-pod.inactive {
  opacity: 0.8;
}
.pricing-pod:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.pricing-pod label {
  color: white;
}

.backup-btn {
  font-size: 10px;
  padding: 2px 5px;
  margin-left: 5px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

.backup-btn.active {
  background-color: #4CAF50;
  color: white;
  border-color: #388E3C;
}

/* Ensure proposal modal centering */
#proposal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#proposal-modal.active {
  display: flex;
}

#proposal-modal .modal-content {
  margin: auto;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  max-width: 700px; /* Increased size */
  width: 80%; /* Responsive width */
}

/* Quote Cart Modal Specific Styles */
#quote-cart-modal .form-group {
  margin-bottom: 15px; /* More spacing for modal fields */
}

#quote-cart-modal .date-range-container input {
  cursor: pointer; /* Indicate date fields are clickable */
  background-color: #fff; /* White background for date inputs */
  border: 1px solid #ccc; /* Add border */
  padding: 10px; /* Adjust padding */
}

#cart-items-container {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  align-items: center; /* Vertically align items */
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-header {
  font-weight: bold;
  color: #555;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 5px;
}

.cart-item span {
  text-align: right; /* Align text to the right within spans */
  flex-basis: 20%; /* Default basis for price/qty columns */
  padding: 0 5px; /* Add some padding */
}

.cart-item .cart-item-name {
  text-align: left;
  flex-grow: 1; /* Allow name to take up remaining space */
  flex-basis: 40%; /* Give name more initial space */
}

.cart-item .cart-item-qty {
  flex-basis: 10%; /* Smaller basis for quantity */
  text-align: center;
}

.cart-info-item {
  font-style: italic;
  color: #666;
  justify-content: flex-start; /* Align info items to the left */
  padding: 5px 0;
}

.cart-info-item .cart-item-name {
  flex-basis: auto; /* Reset basis for info name */
  flex-grow: 0;
  margin-right: 10px;
}

.cart-info-item .cart-item-details {
  flex-grow: 1;
  text-align: left;
}

.cart-total {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #ddd;
  text-align: right;
  font-size: 1.1em;
  font-weight: bold;
}

.cart-total-days {
  font-size: 0.8em;
  font-weight: normal;
  color: #555;
  margin-left: 5px;
}

#quote-cart-modal .form-submit {
  margin-top: 20px; /* Add space above the final button */
}

/* Service list styling for quote details */
.service-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.service-list-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

/* Style for configuration items */
.service-list-item.config-item {
  font-weight: bold;
  color: #0066cc;
  background-color: #f0f7ff;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 4px;
  border-left: 3px solid #0066cc;
}

/* Adjust modal vertical position: center but slightly lower */
.modal-overlay .modal-content {
  margin-top: 60px; /* Push modal down from perfect vertical center */
}

/* --- Specific Element Styling --- */

.price-card .price-value {
  font-weight: bold;
  margin-left: 10px;
}

/* Style for the total price specifically if needed */
#total-price {
  font-size: 1.4em; /* Make total price stand out more */
  color: var(--accent-color); /* Use accent color */
  display: none !important; /* Hide the total price span */
}

/* --- RIGHT SIDEBAR PODS --- */
.info-pod {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 14px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, border-color 0.2s;
  color: #333;
}
.info-pod:hover {
  box-shadow: 0 4px 16px rgba(76,175,80,0.10);
  border-color: #b2dfdb;
}
.info-pod h2 {
  font-size: 1.1em;
  color: #388E3C;
  margin: 0 0 10px 0;
  border-bottom: 1.5px solid #e0e0e0;
  padding-bottom: 4px;
}
.info-pod p {
  margin: 7px 0;
  color: #444;
}
.info-pod strong {
  color: #222;
}
/* Match left sidebar pod spacing */
#info-sidebar .info-pod:last-child {
  margin-bottom: 0;
}

#info-sidebar .info-pod#info-principal {
  margin-top: 24px; /* Add margin above the 'Detalhes LED Principal' pod */
}
