@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
body {
  font-family: 'Roboto', sans-serif;
}
.converter-box {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.flag {
  width: 30px;
  height: 20px;
}
.converter-box h4 {
  font-weight: 700;
  color: #333;
}
.form-label {
  font-weight: 500;
  color: #555;
}
.form-select, .form-control {
  font-weight: 400;
  color: #333;
  border-radius: 8px;
}
.input-group-text {
  background-color: #e9ecef;
  font-weight: 500;
  color: #495057;
  border-radius: 8px 0 0 8px;
}
.toggle-container, .rate-type-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}
.table-wrapper {
  margin: 20px auto;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
}
.currency-table th,
.currency-table td {
  text-align: center;
  padding: 15px;
}
.currency-table th {
  background-color: #f8f9fa;
  font-weight: bold;
}
.currency-table td {
  color: #007bff;
  font-weight: bold;
}
.btn-convert {
    font-size: 14px;
    font-weight: 500;
    border-radius: 26px;
    padding: 10px 20px;
    border: none;
    color: #fff;
    background: #0d6efd; /* Blue color for active state */
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0 5px;
}

.btn-convert.active {
    background: #0056b3; /* Darker blue for active button */
}

.btn-convert.inactive {
    background: #e0e0e0; /* Light gray for inactive button */
    color: #666;
}

.btn-rate-type-switch {
    display: inline-block;
    margin: 0px;
    position: relative;
    width: 200px; /* Same width as the currency conversion switch */
}

.btn-rate-type-switch > label.btn-rate-type-switch-inner {
    margin: 0px;
    width: 100%;
    height: 34px;
    background: #E0E0E0;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: block;
}

.btn-rate-type-switch > label.btn-rate-type-switch-inner:before {
    content: 'Buying Rate';
    position: absolute;
    font-size: 13px;
    font-weight: 500;
    top: 7px;
    right: 20px;
    color: #333;
}

.btn-rate-type-switch > label.btn-rate-type-switch-inner:after {
    content: 'Selling Rate';
    width: 70px;
    height: 16px;
    background: #fff;
    border-radius: 26px;
    position: absolute;
    left: 2px;
    top: 2px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 6px -2px #111;
    padding: 5px 0px;
    font-size: 13px;
    color: #333;
}

.btn-rate-type-switch input[type="checkbox"] {
    cursor: pointer;
    width: 50px;
    height: 25px;
    opacity: 0;
    position: absolute;
    top: 0;
    z-index: 1;
    margin: 0px;
}

.btn-rate-type-switch input[type="checkbox"]:checked + label.btn-rate-type-switch-inner {
    background: #0d6efd; /* Keep the background blue */
    color: #fff;
}

.btn-rate-type-switch input[type="checkbox"]:checked + label.btn-rate-type-switch-inner:after {
    content: 'Buying Rate';
    left: 116px;
    background: #0d6efd; /* Keep the background blue */
    color: #fff;
}

.btn-rate-type-switch input[type="checkbox"]:checked + label.btn-rate-type-switch-inner:before {
    content: 'Selling Rate';
    right: auto;
    left: 20px;
    color: #fff;
}
.navbar-custom {
  background-color: #282c34;
}
.navbar-brand, .nav-link {
  color: #ffffff !important;
}
.nav-link:hover {
  color: #a9b3c1 !important;
}
.footer-custom {
  background-color: #282c34;
  color: #ffffff;
  padding: 2rem 0;
}
.footer-custom a {
  color: #ffffff;
}
.footer-custom a:hover {
  color: #a9b3c1;
}
