/* Currencies Page Styles */
:root {
  --accent: #786D3C;  /* Gold accent from logo */
  --primary-dark: #1B1464;  /* Dark blue from logo */
  --success-color: #28a745;
  --error-color: #dc3545;
  --neutral-color: #6c757d;
}

.currencies-page {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
  background-color: var(--primary-dark);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Currency Filters */
.currency-filters {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.filter-group {
  max-width: 300px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

/* Currency Cards */
.currency-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.currency-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.currency-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.currency-flag {
  /* overflow: hidden; */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.currency-flag img {
  object-fit: contain;
}

.currency-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.currency-info h3 {
  margin: 0 0 5px;
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 600;
}

.currency-code {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 15px;
}

.exchange-rate {
  margin-bottom: 15px;
}

.rate-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
}

.rate-label {
  font-size: 0.9rem;
  color: #6c757d;
}

.trend {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-top: auto;
}

.trend.up {
  color: var(--success-color);
}

.trend.down {
  color: var(--error-color);
}

.trend.neutral {
  color: var(--neutral-color);
}

.trend-arrow {
  margin-right: 5px;
}

.no-data {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Currency Table */
.currency-table-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 40px;
}

.currency-table-section h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 600;
}

.currency-table {
  overflow-x: auto;
}

.table {
  margin-bottom: 0;
  width: 100%;
}

.table thead th {
  background-color: var(--primary-dark);
  color: white;
  font-weight: 600;
  border: none;
  padding: 15px;
}

.table tbody td {
  padding: 12px 15px;
  vertical-align: middle;
}

.currency-name {
  display: flex;
  align-items: center;
}

.mini-flag {
  width: 24px;
  height: 18px;
  margin-right: 10px;
  border: 1px solid #eee;
}

.trend-indicator {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.trend-indicator.up {
  color: var(--success-color);
}

.trend-indicator.down {
  color: var(--error-color);
}

.trend-indicator.neutral {
  color: var(--neutral-color);
}

/* Currency Converter */
.currency-converter {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 40px;
}

.currency-converter h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 600;
}

.converter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.converter-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.form-group {
  flex: 1;
  min-width: 120px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.swap-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
}

.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
  background-color: transparent;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.conversion-result {
  flex: 1;
  min-width: 300px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.result-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.conversion-details {
  color: #6c757d;
  font-size: 0.9rem;
}

.update-time {
  margin-top: 5px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Disclaimer */
.currency-disclaimer {
  background-color: rgba(120, 109, 60, 0.1);
  border-left: 4px solid var(--accent);
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 40px;
}

.currency-disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .currency-cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .converter-form {
    flex-direction: column;
    gap: 15px;
  }
  
  .form-group {
    width: 100%;
  }
  
  .swap-button {
    margin: 10px 0;
    width: 100%;
    justify-content: center;
  }
}
