/* Main Container */
.ecr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: "SolaimanLipi", Arial, sans-serif;
}

/* Typography */
.ecr-page-title {
  margin-bottom: 1.5rem;
  color: var(--ecr-primary-color, #019fd2);
  border-bottom: 2px solid var(--ecr-primary-color, #019fd2);
  padding-bottom: 0.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.ecr-bn-text {
  font-family: "SolaimanLipi", Arial, sans-serif;
}

/* Loading and Error States */
.ecr-loading-state {
  text-align: center;
  padding: 20px;
  color: var(--ecr-primary-color, #019fd2);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 10px 0;
}

.ecr-loading-state i {
  margin-right: 8px;
  animation: spin 1s linear infinite;
}

.ecr-error-state {
  text-align: center;
  padding: 20px;
  color: #d63638;
  background: #fed7d7;
  border: 1px solid #fc8181;
  border-radius: 8px;
  margin: 10px 0;
}

.ecr-error-state i {
  margin-right: 8px;
}

.ecr-error-message {
  background: #fed7d7;
  border: 1px solid #fc8181;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  color: #c53030;
  text-align: center;
}

.ecr-initial-loading {
  text-align: center;
  padding: 40px;
  color: var(--ecr-primary-color, #019fd2);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.ecr-initial-loading i {
  margin-right: 8px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hero Section */
.ecr-hero-section {
  background: linear-gradient(135deg, var(--ecr-primary-color, #019fd2) 0%, #0077a2 100%);
  color: white;
  padding: 50px 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ecr-hero-title {
  margin-bottom: 15px;
  color: white;
  border: none;
  padding: 0;
}

.ecr-hero-subtitle {
  opacity: 0.9;
}

/* Breadcrumb */
.ecr-breadcrumb {
  margin-bottom: 20px;
  background: #f5f5f5;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ecr-breadcrumb a {
  color: var(--ecr-primary-color, #019fd2);
  text-decoration: none;
}

.ecr-breadcrumb a:hover {
  text-decoration: underline;
}

/* Currency Selector Section */
.ecr-currency-selector-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.ecr-currency-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.ecr-currency-selector-label {
  font-weight: 600;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
}

.ecr-currency-selector {
  min-width: 280px;
  border: 2px solid #cbd5e0;
  border-radius: 50px;
  background: white;
  color: #2d3748;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 16px;
}

.ecr-currency-selector:focus {
  outline: none;
  border-color: var(--ecr-primary-color, #019fd2);
  box-shadow: 0 0 0 3px rgba(1, 159, 210, 0.2);
  transform: translateY(-1px);
}

.ecr-compare-button {
  background: linear-gradient(135deg, #6b46c1 0%, #553c9a 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
  font-size: 16px;
}

.ecr-compare-button:hover {
  background: linear-gradient(135deg, #553c9a 0%, #44337a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 70, 193, 0.4);
}

.ecr-compare-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Comparison Container */
.ecr-comparison-container {
  margin-top: 20px;
}

.ecr-loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--ecr-primary-color, #019fd2);
}

.ecr-loading-spinner i {
  margin-bottom: 10px;
  display: block;
  animation: spin 1s linear infinite;
}

.ecr-no-selection,
.ecr-error {
  text-align: center;
  padding: 40px;
  background: #f7fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 10px;
  color: #718096;
}

.ecr-error {
  background: #fed7d7;
  border-color: #fc8181;
  color: #c53030;
}

/* Comparison Stats */
.ecr-comparison-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ecr-stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.ecr-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.ecr-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ecr-primary-color, #019fd2) 0%, #0077a2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.ecr-stat-content {
  flex: 1;
}

.ecr-stat-number {
  font-weight: bold;
  color: #2d3748;
  line-height: 1;
}

.ecr-stat-label {
  font-size: 0.9rem;
  color: #718096;
  margin-top: 4px;
}

/* Rank Column */
.ecr-rank-col {
  width: 80px;
  text-align: center;
}

.ecr-rank-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto;
  background: #e2e8f0;
  color: #4a5568;
  position: relative;
  flex-direction: column;
}

.ecr-rank-top {
  background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
  color: #744210;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.ecr-rank-badge i {
  font-size: 1.2rem;
}

.ecr-best-badge-small {
  position: absolute;
  bottom: -8px;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Center Logo Container */
.ecr-center-col {
  width: 120px;
  text-align: center;
}

.ecr-center-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.ecr-center-logo-link {
  display: block;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px;
}

.ecr-center-logo-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: rgba(1, 159, 210, 0.05);
}

.ecr-center-logo {
  max-width: 100px;
  max-height: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.ecr-center-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ecr-primary-color, #019fd2) 0%, #0077a2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Rate Display Enhanced */
.ecr-rate-display {
  text-align: center;
}

.ecr-rate {
  font-weight: bold;
  font-size: 1.1rem;
  color: #2d3748;
  background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

/* Difference Info Enhanced */
.ecr-diff-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ecr-diff-amount {
  color: #e53e3e;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ecr-diff-percent {
  color: #718096;
  font-size: 0.85rem;
}

.ecr-best-text {
  color: #38a169;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ecr-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Buttons */
.ecr-button {
  background: linear-gradient(to bottom, var(--ecr-primary-color, #019fd2), #0183b0);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 16px;
}

.ecr-button:hover {
  background: linear-gradient(to bottom, #0183b0, #016a8e);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.ecr-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ecr-button-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Forms */
.ecr-form-row {
  margin-bottom: 20px;
}

.ecr-form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #333;
}

.ecr-form-row input,
.ecr-form-row select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ecr-form-row input:focus,
.ecr-form-row select:focus {
  border-color: var(--ecr-primary-color, #019fd2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 159, 210, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Converter */
.ecr-converter {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ecr-converter-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.ecr-converter-input-group {
  display: flex;
  flex-direction: column;
}

.ecr-converter-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-family: inherit;
}

.ecr-amount-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  background: #f9fafb;
  transition: all 0.2s;
}

.ecr-amount-input:focus {
  outline: none;
  border-color: var(--ecr-primary-color, #019fd2);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(1, 159, 210, 0.1);
}

.ecr-currency-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.ecr-currency-select:focus {
  outline: none;
  border-color: var(--ecr-primary-color, #019fd2);
  box-shadow: 0 0 0 3px rgba(1, 159, 210, 0.1);
}

.ecr-swap-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6b46c1;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
}

.ecr-swap-button:hover {
  background: #553c9a;
  transform: rotate(180deg);
}

.ecr-bank-rate-section {
  margin-bottom: 20px;
}

.ecr-bank-rate-label {
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.ecr-bank-rate-select {
  width: 200px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
}

.ecr-convert-button {
  background: #6b46c1;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ecr-convert-button:hover {
  background: #553c9a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.ecr-convert-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ecr-converter-result {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.ecr-result-primary {
  font-size: 18px;
  color: #0ea5e9;
  font-weight: 600;
  margin-bottom: 8px;
}

.ecr-result-secondary {
  font-size: 16px;
  color: #1f2937;
  font-weight: 500;
}

/* Responsive Design for Converter */
@media (max-width: 768px) {
  .ecr-converter-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ecr-swap-button {
    justify-self: center;
    order: 2;
  }

  .ecr-converter-input-group:first-child {
    order: 1;
  }

  .ecr-converter-input-group:last-child {
    order: 3;
  }

  .ecr-bank-rate-select {
    width: 100%;
  }

  .ecr-currency-selector-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .ecr-currency-selector {
    min-width: auto;
    width: 100%;
  }

  .ecr-compare-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ecr-converter {
    padding: 16px;
  }

  .ecr-amount-input,
  .ecr-currency-select {
    font-size: 14px;
  }

  .ecr-convert-button {
    width: 100%;
    justify-content: center;
  }
}

/* Rates Table */
.ecr-rates-table {
  margin-bottom: 40px;
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e9f0;
}

.ecr-search-form {
  margin-bottom: 25px;
  display: flex;
}

.ecr-search-form input[type="search"] {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #ddd;
  border-radius: 50px 0 0 50px;
  border-right: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ecr-search-form button {
  border-radius: 0 50px 50px 0;
  padding: 0 25px;
}

.ecr-rates {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 25px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ecr-rates th,
.ecr-rates td {
  padding: 18px 15px;
  text-align: left;
}

.ecr-rates th {
  background: linear-gradient(to bottom, var(--ecr-primary-color, #019fd2), #0183b0);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ecr-rates tr:nth-child(even) {
  background-color: #f5f9fc;
}

.ecr-rates tr:hover {
  background-color: #edf5fa;
}

.ecr-rates td {
  border-bottom: 1px solid #e0e9f0;
}

/* Pagination */
.ecr-pagination {
  margin-top: 30px;
  text-align: center;
}

.ecr-page-link {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 5px;
  border: 1px solid #ddd;
  border-radius: 50px;
  text-decoration: none;
  color: var(--ecr-primary-color, #019fd2);
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ecr-page-link:hover {
  background-color: #f5f9fc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ecr-current-page {
  background: linear-gradient(to bottom, var(--ecr-primary-color, #019fd2), #0183b0);
  color: white;
  border-color: var(--ecr-primary-color, #019fd2);
  box-shadow: 0 4px 8px rgba(1, 159, 210, 0.3);
}

/* Centers Grid */
.ecr-centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.ecr-center-card {
  background: linear-gradient(to bottom, #ffffff, #f9f9f9);
  border: 1px solid #e0e9f0;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.ecr-center-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--ecr-primary-color, #019fd2);
}

.ecr-center-logo-wrapper {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ecr-center-card h3 {
  color: var(--ecr-primary-color, #019fd2);
  margin-top: 0;
  margin-bottom: 20px;
}

.ecr-center-card .ecr-button {
  width: 100%;
}

/* Currency Details */
.ecr-currency-details {
  background: linear-gradient(to bottom, #ffffff, #f9f9f9);
  border: 1px solid #e0e9f0;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ecr-currency-info {
  margin-bottom: 30px;
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid #e0e9f0;
}

.ecr-current-rate {
  font-size: 1.2rem;
  margin: 25px 0;
  color: var(--ecr-primary-color, #019fd2);
  background: #f5f9fc;
  padding: 15px;
  border-radius: 10px;
  display: inline-block;
}

.ecr-bn-rate {
  display: inline-block;
  font-weight: bold;
  color: var(--ecr-primary-color, #019fd2);
}

.ecr-updated {
  color: #777;
}

.ecr-conversion-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ecr-conversion-table th,
.ecr-conversion-table td {
  padding: 18px 15px;
  text-align: center;
}

.ecr-conversion-table th {
  background: linear-gradient(to bottom, var(--ecr-primary-color, #019fd2), #0183b0);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ecr-conversion-table tr:nth-child(even) {
  background-color: #f5f9fc;
}

.ecr-conversion-table td {
  border-bottom: 1px solid #e0e9f0;
}

/* Intro and Center Info */
.ecr-intro,
.ecr-center-info {
  margin-bottom: 40px;
}

.ecr-info-card {
  background: linear-gradient(to bottom, #f5f9fc, #ffffff);
  border: 1px solid #e0e9f0;
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.ecr-info-icon {
  font-size: 1.5rem;
  color: var(--ecr-primary-color, #019fd2);
  margin-right: 20px;
  background: #f0f8ff;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 5px 10px rgba(1, 159, 210, 0.2);
}

.ecr-info-content {
  flex: 1;
}

.ecr-info-content p {
  margin: 0;
  line-height: 1.6;
}

/* Section Headings */
.ecr-converter-section h2,
.ecr-rates-section h2,
.ecr-centers-list h2,
.ecr-popular-rates h2,
.ecr-comparison-section h3 {
  text-align: center;
  color: var(--ecr-primary-color, #019fd2);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.ecr-converter-section h2:after,
.ecr-rates-section h2:after,
.ecr-centers-list h2:after,
.ecr-popular-rates h2:after,
.ecr-comparison-section h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--ecr-primary-color, #019fd2);
  border-radius: 3px;
}

/* Center Header */
.ecr-center-header {
  text-align: center;
  margin-bottom: 30px;
}

.ecr-center-header-logo {
  max-width: 200px;
  max-height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.ecr-center-header-logo-placeholder {
  width: 200px;
  height: 100px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ecr-primary-color, #019fd2) 0%, #0077a2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.ecr-title-logo {
  max-height: 50px;
  margin-right: 15px;
  object-fit: contain;
}

.ecr-title-logo-placeholder {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ecr-primary-color, #019fd2) 0%, #0077a2 100%);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 50px;
  text-align: center;
  margin-right: 15px;
  vertical-align: middle;
}

/* Comparison Section */
.ecr-comparison {
  background: linear-gradient(to bottom, #ffffff, #f9f9f9);
  border: 1px solid #e0e9f0;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.ecr-comparison-header {
  text-align: center;
  margin-bottom: 25px;
}

.ecr-comparison-header h3 {
  color: var(--ecr-primary-color, #019fd2);
  margin-bottom: 10px;
}

.ecr-comparison-subtitle {
  color: #666;
}

.ecr-comparison-table-wrapper {
  overflow-x: auto;
}

.ecr-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ecr-comparison-table th,
.ecr-comparison-table td {
  padding: 18px 15px;
  text-align: left;
}

.ecr-comparison-table th {
  background: linear-gradient(to bottom, var(--ecr-primary-color, #019fd2), #0183b0);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ecr-comparison-table tr:nth-child(even) {
  background-color: #f5f9fc;
}

.ecr-comparison-table tr:hover {
  background-color: #edf5fa;
}

.ecr-comparison-table td {
  border-bottom: 1px solid #e0e9f0;
}

.ecr-rate-col {
  width: 30%;
}

.ecr-diff-col {
  width: 30%;
}

.ecr-best-rate {
  background: rgba(1, 159, 210, 0.05) !important;
}

.ecr-comparison-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e9f0;
}

.ecr-comparison-note {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.ecr-comparison-tip {
  background: #fff8e1;
  padding: 15px;
  border-radius: 10px;
}

/* Popular Rates Section */
.ecr-popular-rates {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Footer */
.ecr-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e9f0;
  text-align: center;
}

.ecr-sitemap-link a {
  color: var(--ecr-primary-color, #019fd2);
  text-decoration: none;
  font-size: 0.9rem;
}

.ecr-sitemap-link a:hover {
  text-decoration: underline;
}

/* Chart Loading and Error States */
.ecr-chart-loading,
.ecr-chart-error {
  text-align: center;
  padding: 40px;
  color: var(--ecr-primary-color, #019fd2);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 20px 0;
}

.ecr-chart-error {
  color: #d63638;
  background: #fed7d7;
  border-color: #fc8181;
}

.ecr-chart-loading i,
.ecr-chart-error i {
  margin-right: 8px;
}

/* Responsive */
@media (max-width: 992px) {
  .ecr-hero-title {
  }

  .ecr-page-title {
  }

  .ecr-info-card {
    flex-direction: column;
    text-align: center;
  }

  .ecr-info-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .ecr-center-col {
    width: 120px;
  }

  .ecr-rate-col {
    width: 30%;
  }

  .ecr-diff-col {
    width: 30%;
  }
}

@media (max-width: 768px) {
  .ecr-converter-form {
    grid-template-columns: 1fr;
  }

  .ecr-search-form {
    flex-direction: column;
  }

  .ecr-search-form input[type="search"] {
    border-right: 1px solid #ddd;
    border-radius: 50px;
    margin-bottom: 10px;
  }

  .ecr-search-form button {
    border-radius: 50px;
    width: 100%;
  }

  .ecr-rates,
  .ecr-comparison-table,
  .ecr-conversion-table {
    display: block;
    overflow-x: auto;
  }

  .ecr-page-title {
    flex-direction: column;
  }

  .ecr-title-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .ecr-title-logo-placeholder {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .ecr-result-amount {
    font-size: 1.3rem;
  }

  .ecr-center-logo-container {
    height: 60px;
  }

  .ecr-center-logo {
    max-width: 80px;
    max-height: 50px;
  }

  .ecr-rank-badge {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .ecr-container {
    padding: 15px;
  }

  .ecr-hero-section {
    padding: 30px 15px;
  }

  .ecr-converter,
  .ecr-rates-table,
  .ecr-comparison,
  .ecr-currency-details {
    padding: 20px 15px;
  }

  .ecr-centers-grid {
    grid-template-columns: 1fr;
  }

  .ecr-center-col,
  .ecr-rate-col,
  .ecr-diff-col {
    width: auto;
  }

  .ecr-comparison-table th,
  .ecr-comparison-table td,
  .ecr-rates th,
  .ecr-rates td,
  .ecr-conversion-table th,
  .ecr-conversion-table td {
    padding: 12px 10px;
  }

  .ecr-button {
    padding: 10px 20px;
  }

  .ecr-button-small {
    padding: 6px 12px;
  }

  .ecr-comparison-stats {
    grid-template-columns: 1fr;
  }

  .ecr-center-logo-container {
    height: 50px;
  }

  .ecr-center-logo {
    max-width: 60px;
    max-height: 40px;
  }

  .ecr-center-placeholder {
    width: 50px;
    height: 50px;
  }
}

/* Bengali Font */
@font-face {
  font-family: "SolaimanLipi";
  src: url("../fonts/SolaimanLipi.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.rotating {
  transform: rotate(180deg) !important;
  transition: transform 0.3s ease;
}

/* Currency Link Styling */
.ecr-currency-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 4px 0;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.ecr-currency-link:hover {
  color: var(--ecr-primary-color, #019fd2);
  text-decoration: none;
  background-color: rgba(1, 159, 210, 0.05);
  padding: 4px 8px;
  margin: -4px -8px;
}

.ecr-currency-link:hover .ecr-bn-text {
  font-weight: 600;
}

.ecr-currency-link:hover small {
  color: var(--ecr-primary-color, #019fd2) !important;
}

/* Error Page Styling */
.ecr-error-page {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  margin: 40px 0;
}

.ecr-error-page h1 {
  color: #d63638;
  margin-bottom: 20px;
}

.ecr-error-page p {
  margin-bottom: 20px;
  color: #666;
}
