:root {
  --primary-color: #011a32;
  --secondary-color: #170444;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #2c3e50;
  --success-color: #2b312e;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --border-radius: 10px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: "Noto Kufi Arabic", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: #f5f7fa;
  color: var(--text-color);
  line-height: 1.6;
  direction: rtl;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

.app-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.header-content h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-content h1 i {
  color: var(--light-color);
}

.datetime {
  font-size: 1rem;
  opacity: 0.9;
}

.app-main {
  flex: 1;
  padding: 1rem;
}

.rates-container {
  width: 100%;
  overflow-x: auto;
  margin: 0 auto;
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: var(--box-shadow);
}

.rates-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}

.rates-table th {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem;
  font-weight: 700;
  text-align: center;
  position: sticky;
  top: 0;
}

.rates-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.rates-table tr:last-child td {
  border-bottom: none;
}

.rates-table tr:hover td {
  background-color: rgba(0, 0, 0, 0.1);
}

.country-col {
  font-weight: 600;
  color: var(--dark-color);
  
}

.currency-col {
  font-weight: 700;
  color: var(--primary-color);
}

.buy-col {
  background-color: white;
  color: #170444;
  font-weight: 700;
  box-shadow: #011a32;
}

.sell-col {

  color:#170444;
  font-weight: 700;
}

.app-footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-content {
  margin-bottom: 0.5rem;
}

.footer-content p {
  margin: 0.2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mode-toggle {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0.5rem auto 0;
  transition: var(--transition);
}

.mode-toggle:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content h1 {
    font-size: 1.5rem;
  }
  
  .rates-table {
    font-size: 0.9rem;
  }
  
  .rates-table th, 
  .rates-table td {
    padding: 0.8rem 0.5rem;
  }
}

@media (min-width: 1200px) {
  .app-container {
    max-width: 1200px;
  }
  
  .rates-table {
    font-size: 1.1rem;
  }
}