.adr-calculator-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}

.calculator-column,
.results-column {
  flex: 1;
  min-width: 300px;
}

.results-column {
  max-width: 500px;
}

.onu-calculator {
  margin: 20px;
  margin-top: 65px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.onu-calculator-info {
  margin: 20px;
}

.onu-calculator h1 {
  font-size: 20px;
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
  padding: 0 20px 20px;
}

.input-group {
  padding: 0 20px 15px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 8px;
  color: #000;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  background: white;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #666;
  pointer-events: none;
}

.select-wrapper select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px;
}

.button-container {
  display: flex;
  align-items: center;
  padding: 0 20px 15px;
}

.button-container #add-button {
  margin-right: auto; /* This will push the Adauga button to the left */
}

.button-container #reset-button {
  margin-left: auto; /* This will push the Reseteaza button to the right */
}

.primary-button {
  background: #18181b;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.primary-button:hover {
  background: #27272a;
  color: white;
}

.primary-button:focus {
  background: #27272a;
  color: white;
}

.primary-button:disabled {
  background: #a1a1aa;
  cursor: not-allowed;
}

.secondary-button {
  background: #e0e0e0;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
}

.secondary-button:hover {
  background: #d4d4d4;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 5px;
  position: relative;
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 5px;
}

.close-modal:hover {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-button-container {
  text-align: center;
  margin-top: 20px;
}

.modal-button {
  padding: 8px 16px;
  margin-top: 10px;
  cursor: pointer;
}

.item-card {
  position: relative;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.remove-item-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.remove-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background-color: white;
  color: black;
  font-weight: 100;
  font-size: 16px;

  cursor: pointer;
}

.remove-item:hover {
  color: red;
  background-color: white;
}

.remove-item svg {
  width: 16px;
  height: 16px;
}

.results-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.total-results {
  background-color: #f8f9fa;
  border-radius: 8px;
  width: 100%;
  text-align: center;
}

.result-message {
  margin: 20px 0;
  padding: 15px;
  border-radius: 5px;
  font-size: 14px;
}

.result-message.success-message {
  background-color: #e8f5e9 !important;
  color: #2e7d32 !important;
  border: 1px solid #a5d6a7 !important;
  text-align: left;
}

.result-message.error-message {
  background-color: #ffebee !important;
  color: #c62828 !important;
  border: 1px solid #ef9a9a !important;
  text-align: left;
}

.result-message ul {
  margin: 10px 0;
  padding-left: 20px;
  list-style-type: disc;
}

.result-message li {
  margin: 5px 0;
  padding: 2px 0;
}

.result-message p {
  margin: 8px 0;
  display: block !important;
}

.result-message strong {
  font-weight: 600 !important;
  display: inline !important;
}

@media (max-width: 768px) {
  .adr-calculator-wrapper {
    flex-direction: column;
  }

  .calculator-column,
  .results-column {
    max-width: 100%;
  }
}

.version-info {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  margin: 1rem auto;
  padding: 0.5rem;
}

/* breakdown points  */
.category-breakdown {
  font-family: Arial, sans-serif;
  color: #333; /* Adjust color as needed */
}

.breakdown-details {
  display: table;
  width: 100%;
  border: 1px solid lightgray;
  margin: 20px 0;
  padding: 15px;
  background-color: #d4d4d4;
  border-radius: 5px;
  stroke: lightgray;
}

.breakdown-header,
.breakdown-row {
  display: table-row;
  text-align: left;
}

.breakdown-header span,
.breakdown-row span {
  display: table-cell;
  padding: 5px;
}

.breakdown-header span {
  font-weight: bold;
}

.category-header {
  text-align: left;
}

.point-header {
  text-align: right;
}

/* popup information  */
.label-with-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.info-button {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  margin-left: 10px;
  font-weight: 500;
}

.info-button:hover {
  text-decoration: underline;
  background: none;
}

.popup {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it appears above other elements */
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  position: relative;
}

#onu-calculator-app {
  position: relative;
}

#onu-calculator-app .close-popup {
  font-size: 32px;
  cursor: pointer;
  position: absolute;
  right: 30px;
}

.onu-calculator-info p {
  margin: 40px 0 0 0;
  font-weight: bold;
}
