/* Root variables for colors */
:root {
  --primary-color: #ed1c24;
  --cards-hover: #f7f7f7;
  --primary-gray: #f7f7f7;
}

/* Universal styling for all elements within exr-table-btn-container */
.exr-table-btn-container * {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  z-index: 100;
}

/* toggle-btn */
.exr-toggle-table-btn {
  background-color: var(--primary-color) !important;
  color: #fff;
  padding: 10px 20px;
  border: 2px solid white;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  bottom: 15px;
  left: 30px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: fixed;
}

.exr-toggle-table-btn:hover {
  background-color: #ed1c23ee;
  transform: scale(1.05);
}

.exr-toggle-table-btn:active {
  background-color: var(--primary-color);
}

/* icon */
.exr-toggle-exchange,
.exr-toggle-close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* table */
.exr-table-container {
  max-width: 640px;
  width: 100%;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: white;
  bottom: 85px;
  left: 30px;
  position: fixed;
}

/* Mobile responsive adjustments for popup */
@media (max-width: 768px) {
  .exr-table-container {
    max-width: calc(100vw - 40px);
    width: calc(100vw - 40px);
    left: 20px;
    right: 20px;
    bottom: 75px;
  }

  .exr-card-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }

  .exr-head-container,
  .exr-row {
    min-width: 400px;
  }

  .exr-column {
    min-width: 160px;
    flex-shrink: 0;
  }

  .exr-currency-flag-code-name-container {
    min-width: 150px;
  }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
  .exr-table-container {
    max-width: calc(100vw - 30px);
    width: calc(100vw - 30px);
    left: 15px;
    right: 15px;
    bottom: 70px;
    max-height: 400px;
  }

  .exr-date-container {
    padding: 20px 0 15px 15px;
    font-size: 18px;
  }

  .exr-head-container,
  .exr-row {
    min-width: 350px;
  }

  .exr-column {
    min-width: 100px;
    padding: 12px 10px 5px;
  }

  .exr-currency-flag-code-name-container {
    min-width: 130px;
  }

  .exr-currency-flag {
    width: 25px;
    height: 25px;
  }

  .exr-currency-code {
    font-size: 16px;
  }
}

/* Landscape mobile orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .exr-table-container {
    max-height: 300px;
    bottom: 60px;
  }

  .exr-date-container {
    padding: 15px 0 10px 15px;
    font-size: 16px;
  }

  .exr-column {
    padding: 8px 10px 3px;
  }
}

.exr-date-container {
  padding: 30px 0 20px 18px;
  font-weight: 500;
  font-size: 20px;
  border-bottom: 1px solid var(--primary-color);
}

/* .exr-show-currency-convertor {
  border: none;
  padding: 2px 3px;
  border-radius: 4px;
  background-color: #ed1c233d;
  cursor: pointer;
  color: #000;
  }
  .exr-show-currency-convertor:hover {
  background-color: #ed1c2354;
  color: #000;
  } */

.exr-show-currency-convertor a {
  text-decoration: none;
  color: var(--primary-color) !important;
}

.exr-card-container {
  width: 100%;
}

.exr-head-container,
.exr-row {
  display: flex;
  width: 100%;
}

.exr-column {
  flex: 1;
  padding: 15px 15px 7px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  color: #999999;
}

.exr-currency-flag-code-name-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exr-currency-flag-code {
  display: flex;
  align-items: center;
  gap: 6px;
}

.exr-currency-flag {
  width: 30px;
  height: 30px;
}

.exr-currency-flag img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.exr-currency-icon-name-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.exr-currency-icon {
  background-color: #9b9b9b;
  color: #fff;
  font-size: 12px;
  padding: 0 4px;
  border-radius: 3px;
}

.exr-currency-code {
  font-size: 20px;
  line-height: 20px;
  font-weight: 400;
  color: #000;
}

.exr-head-container {
  position: sticky;
  top: 0;
  z-index: 101;
  background-color: #f7f7f7;
  /* Background color for visibility */
  color: #999999;
}

/* scroll */
/* Custom scrollbar styles */
.exr-table-container::-webkit-scrollbar {
  width: 5px;
  /* Scrollbar width */
}

.exr-table-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  /* Color for the scrollbar */
  border-radius: 6px;
  /* Rounded edges */
}

.exr-table-container::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color);
  /* Darker color on hover */
}

.exr-table-container::-webkit-scrollbar-track {
  background-color: #f4f4f4;
  /* Light gray for the scrollbar track */
  border-radius: 6px;
  /* Rounded track edges */
}

/* exr-exchnage */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-toggle {
  width: 100%;
  padding: 10px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.dropdown-menu {
  display: none;
  position: absolute;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-item {
  padding: 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

.currency-flag {
  width: 24px;
  height: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

.currency-name {
  flex-grow: 1;
}

.currency-symbol {
  margin-left: 5px;
  color: #6c757d;
  font-weight: bold;
}

/* Echange rate */
.exr-container {
  background: #fff;
  /* background: url('https://zemenbank.com/templates/zemen360/images/gray-bull-artwork.png') no-repeat; */
  display: flex;
  justify-content: space-between;
  /* font-family: 'SF UI Display', sans-serif; */
  margin: 60px 0 100px 0;

  gap: 2%;
  padding: 0 2%;
}

.exr-calculator-container,
.exchange-rates-container {
  background-color: var(--primary-gray);
  width: 50%;
}

/* calculator-input */
.exr-calculator-container {
  width: 35%;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: self-start;
  gap: 90px;
  overflow: auto;
  max-width: 700px;
  /* max-width: 400px; */
  width: 400px;
}

/* layout-shift */

/* exr-info */
.exchange-rates-container {
  width: 60%;
  max-height: 900px;
  overflow-y: auto;
  border-radius: 8px;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  background-color: var(--primary-gray);
  border-radius: 20p 0 0 20px;
  /* padding: 40px; */
  max-width: 700px;
  /* max-width: 400px; */
  width: 700px;
}

.exchange-rates-container h3 {
  padding: 20px 40px;
}

/* scroll */
/* Custom scrollbar styles */
.exchange-rates-container::-webkit-scrollbar {
  width: 5px;
  /* Scrollbar width */
}

.exchange-rates-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  /* Color for the scrollbar */
  border-radius: 6px;
  /* Rounded edges */
}

.exchange-rates-container::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color);
  /* Darker color on hover */
}

.exchange-rates-container::-webkit-scrollbar-track {
  background-color: #f4f4f4;
  /* Light gray for the scrollbar track */
  border-radius: 6px;
  /* Rounded track edges */
}

/* labels */
#exr-calc-form label {
  font-size: 18px;
  font-weight: 600;
  margin: 18px 0;
}

/* search */
.exr-search-button {
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  padding: 0 3px;
}

.exr-search-button:hover {
  background: #ed1c23ec;
}

.exr-search-button .exr-icon img {
  width: 28px;
  height: 28px;
}

#exr-search-date {
  color: #fff;
  border: none;
  padding: 0 6px;
  font-size: 18px;
  font-weight: 400;
}

#exr-search-date:hover {
  background: #ed1c24;
}

/* buying-selling */
#exr-cash-buying, #exr-cash-buying-br,#exr-cash-selling-br,
#exr-cash-selling {
  font-size: 18px;
  font-weight: 500;
  /* border: 1px solid black; */
  padding: 10px;
  border-radius: 12px;
}

.exr-currency-code-2 {
  color: #000;
  /* padding-top: 18px; */
  font-size: 18px;
}

/* input */

/* General Styles */
input[type="number"] {
  background-color: transparent;
  border-radius: 8px !important;
  font-weight: 500;
}

/* Focus State */
input[type="number"]:focus {
  outline: none;
}

/* select-cur */
select {
  background-color: transparent;
  border-radius: 8px !important;
}

/* Focus State */
select:focus {
  outline: none;
  /* Remove default outline */
}

/* Disabled State */
select:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Dropdown Arrow Styling */
select::after {
  content: "▼";
  /* Custom dropdown arrow */
  position: absolute;
  right: 10px;
  pointer-events: none;
}

/* Adjusting Option Items */
option {
  padding: 10px;
  /* Space for each item */
  background-color: #fff;
  /* Background color */
  color: #333;
  /* Text color */
}

/* Highlight Selected Option */
option:checked {
  background-color: #007bff;
  color: #fff;
}

/* Hide text and show only icons on small devices */
@media (max-width: 768px) {
  .exr-toggle-exchange span:nth-child(2),
  .exr-toggle-close span:nth-child(2) {
    display: none;
    /* Hide text only on small screens */
  }

  .exr-container {
    flex-direction: column;
  }
  .exr-calculator-container {
    width: 100%;
    margin: auto;
  }

  .exchange-rates-container {
    width: 100%;
    margin: auto;
    margin-top: 70px;
    overflow-x: hidden;
  }

  .exr-toggle-table-btn .exr-icon img {
    width: 60px !important;
    height: 30px !important;
  }

  .exr-toggle-table-btn {
    padding: 7px 10px;
    left: 20px;
    bottom: 10px;
  }
}




/* General Styles */
input[type="number"] {
	background-color: transparent;
	border-radius: 8px !important;
	font-weight: 500;
}

/* Focus State */
input[type="number"]:focus {
	outline: none;

}

/* select-cur */
select {
	background-color: transparent;
	border-radius: 8px !important;
}

/* Focus State */
select:focus {
	outline: none;
	/* Remove default outline */

}

/* Disabled State */
select:disabled {
	background-color: #e9ecef;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Dropdown Arrow Styling */
select::after {
	content: "▼";
	/* Custom dropdown arrow */
	position: absolute;
	right: 10px;
	pointer-events: none;
}

/* Adjusting Option Items */
option {
	padding: 10px;
	/* Space for each item */
	background-color: #fff;
	/* Background color */
	color: #333;
	/* Text color */
}

/* Highlight Selected Option */
option:checked {
	background-color: #007bff;
	color: #fff;
}

/* select-cusotm */
#currency, #amount , #br-amount,#date {
    background-color: white; 
    border: none; 
    outline: none; 
    padding: 8px; 
    font-size: 16px; 
    width: 100%; 
}

/* Style for focus state */
#currency:focus, #amount:focus, #br-amount:focus, #date:focus {
    box-shadow: 0 0 2px rgba(237, 28, 36, 0.5); 
}


/* Optional: Show text and icons on larger screens */
@media (min-width: 769px) {
  .exr-toggle-exchange span:nth-child(2),
  .exr-toggle-close span:nth-child(2) {
    display: inline;
    /* Show text on larger screens */
  }
}

@media (min-width: 1024px) {
  #exr-search-date {

    padding: 0px 0px;
    font-size: 14px;

  }
}

