:root {
  --bs-primary-rgb: 69, 178, 236;
  --bs-primary: rgb(69, 178, 236);
}

.bg-primary {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  line-height: 60px;
  background-color: #ffffff;
  border-top: 1px solid #dee2e6;
  z-index: 1000;
}

/* Converter Styles */
.converter-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.converter-header {
  background: white;
  padding: 20px 30px;
  text-align: center;
  border-bottom: 1px solid #e8e8e8;
}

.converter-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.tabs-container {
  background: white;
  border-bottom: 2px solid #e8e8e8;
}

.tabs-container .nav-tabs {
  border-bottom: none;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 0;
}

.tabs-container .nav-link {
  padding: 15px 20px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #7f8c8d;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  border-radius: 0;
}

.tabs-container .nav-link:hover {
  color: #2c3e50;
  background: #f8f9fa;
  border-color: transparent;
}

.tabs-container .nav-link.active {
  color: rgb(69, 178, 236);
  border-bottom-color: rgb(69, 178, 236);
  font-weight: 600;
  background: transparent;
}

.tabs-container .nav-link svg {
  width: 20px;
  height: 20px;
}

.converter-content {
  padding: 40px;
}

.input-group-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-wrapper input {
  font-size: 20px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  height: 52px;
}

.input-wrapper input:focus {
  border-color: rgb(69, 178, 236);
  box-shadow: 0 0 0 0.25rem rgba(69, 178, 236, 0.25);
}

.readonly-wrapper input {
  background: #f8fafc;
  color: rgb(69, 178, 236);
  font-weight: 600;
}

.input-group-wrapper select.form-select {
  height: 48px;
  font-size: 14px;
}

.arrow-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  min-height: 134px;
}

.arrow-wrapper svg {
  width: 32px;
  height: 32px;
  color: #94a3b8;
}

.table-section .card-header {
  background-color: rgb(69, 178, 236);
  font-weight: 600;
  padding: 16px 20px;
}

.table-row {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  transition: background 0.2s;
}

.table-row:hover {
  background: #f8fafc;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row .unit-name {
  font-weight: 500;
  color: #2c3e50;
}

.table-row .unit-symbol {
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.table-row .unit-value {
  font-weight: 600;
  color: rgb(69, 178, 236);
  text-align: right;
}

@media (max-width: 768px) {
  .converter-content {
    padding: 20px;
  }

  .arrow-col {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .arrow-wrapper svg {
    transform: rotate(90deg);
  }

  .tabs-container .nav-link {
    padding: 12px 15px;
    font-size: 12px;
  }

  .table-row {
    padding: 12px 15px;
    font-size: 14px;
  }
}
