body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100vh;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

.main-title {
  text-align: center;
  color: #F7931A;
  margin-top: 5px;
  margin-bottom: 20px;
}

.info-panel label {
  margin-bottom: 5px; /* Añade un pequeño margen entre los labels dentro del info-panel */
}

.info-panel {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 15px 20px;
  max-width: 500px;
  width: 100%;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* New styles for footer icons */
.app-footer-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Space between icons */
  margin-top: 10px; /* Space from tab content */
  padding-top: 10px;
  border-top: 1px solid #eee; /* Separator line */
}

.icon-button {
  background: none;
  border: none;
  font-size: 24px; /* Size of the icon */
  cursor: pointer;
  color: #4D4D4D; /* Icon color */
  transition: color 0.2s ease;
  padding: 5px; /* Make clickable area larger */
}

.icon-button:hover {
  color: #F7931A; /* Darker color on hover */
}

/* Modal Overlay */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: auto; /* Centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more specific */
  max-width: 400px; /* Max width */
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  position: relative; /* For absolute positioning of close button */
}

#infoModal .modal-content p {
  text-align: justify;
}

/* The Close Button */
.close-button {
  color: #aaa;
  float: right; /* Not strictly needed with absolute positioning */
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Styles for input with keypad toggle button */
.input-with-keypad-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px; /* Keep consistent with other container divs */
}

.input-with-keypad-toggle input {
  flex-grow: 1; /* Allow input to take available space */
}

.keypad-toggle-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
  padding: 0 5px;
  flex-shrink: 0; /* Prevent button from shrinking */
}

.keypad-toggle-btn:hover {
  color: #F7931A;
}

/* Numeric Keypad Styles - Made selector more specific to override .container div */
.container .numeric-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for numbers */
  gap: 10px;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 10px;
  margin-top: 15px; /* Space above convert button */
  margin-bottom: 15px; /* Space below convert button */
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.numeric-keypad.hidden {
  display: none;
}

.numeric-keypad button {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px 0;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.numeric-keypad button:hover {
  background-color: #e0e0e0;
  transform: translateY(-1px);
}

/* Special styling for the last row of the keypad (C, 0, ., ⌫) */
.numeric-keypad button[data-key="C"],
.numeric-keypad button[data-key="⌫"] {
  background-color: #ffeded; /* Light red for clear/backspace */
  color: #d9534f; /* Darker red text */
}

.numeric-keypad button[data-key="C"]:hover,
.numeric-keypad button[data-key="⌫"]:hover {
  background-color: #ffe0e0;
}


.tab-panel {
  width: 100%;
  max-width: 500px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: -1px;
}

.tab-button {
  background-color: #f4f4f9;
  border: 1px solid #ddd;
  border-bottom: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  margin: 0 5px;
  font-size: 16px;
  font-weight: bold;
  color: #4D4D4D;
  transition: all 0.3s ease;
}

.tab-button.active {
  background-color: #ffffff;
  border-color: #F7931A;
  color: #F7931A;
}

.tab-content {
  border: 1px solid #ddd;
  border-radius: 0 0 15px 15px;
  background-color: #ffffff;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.container {
  padding: 20px;
  width: 100%;
}

.container div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.container label {
  flex-shrink: 0;
  font-weight: bold;
  color: #4D4D4D;
}

.container select,
.container input,
.container button {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.container select:focus,
.container input:focus,
.container button:hover {
  border-color: #F7931A;
  box-shadow: 0 0 4px rgba(247, 147, 26, 0.5);
}

.container button {
  background-color: #F7931A;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* Override general button styles for the specific keypad toggle button */
.container .keypad-toggle-btn {
  width: auto; /* Prevent it from taking full width */
  background: none; /* Ensure transparent background */
}

.fiat {
  display: block;
  text-align: center;
  margin: 10px auto;
  color: #4D4D4D;
}

.hidden {
  display: none; /* Oculta el elemento */
}

.visible {
  display: inline-block; /* Muestra el elemento */
  text-align: center;
  margin: 10px auto;
}

.container button:hover {
  background-color: #dd8110;
}

/* Styles for the settings modal content */
#settingsModal .modal-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #4D4D4D;
}

#settingsModal .default-currency-setting {
  border-top: none; /* Remove border from original location */
  padding-top: 0;
  margin-top: 0;
  flex-direction: column; /* Stack label and select */
  align-items: flex-start;
  width: 100%; /* Ensure container takes full width */
}

/* Apply consistent styling to the select element inside the modal */
#settingsModal select {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  margin-top: 5px; /* Add some space between label and select */
}

label.fiat .fiat-value {
  font-weight: bold;
  color: #F7931A;
}