/* Modern Glassmorphism Style with Gold Animations */
:root {
  --primary: rgba(20, 20, 50, 0.9);
  --secondary: rgba(98, 144, 195, 0.8);
  --accent: rgba(241, 255, 231, 0.278);
  --text: #000000;
  --light: #000000;
  --dark: #0a0a0a;
  --success: rgba(2, 80, 44, 0.9);
  --error: rgba(107, 4, 47, 0.9);
  --gold: #ffd90048;
  --gold-light: rgba(255, 215, 0, 0.5);
  --gold-dark: #d4af3753;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Noto Kufi Arabic', 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #ffffff17 0%, #ffffff26 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;

}

/* Background elements */
.bg-blur {
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle, rgba(98, 143, 195, 0.066) 0%, rgba(255,255,255,0) 60%);
  z-index: -3;
  animation: rotate 20s linear infinite;
}

.floating-coins {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.coin {
  position: absolute;
  color: rgba(255, 215, 0, 0.6);
  font-size: 24px;
  animation: float 15s infinite linear;
  opacity: 0.7;
  text-shadow: 0 0 10px rgba(255, 217, 0, 0.143);
}

.gold-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.gold-particle {
  position: absolute;
  color: var(--gold);
  font-size: 10px;
  animation: goldParticle 8s linear infinite;
  opacity: 0;
  text-shadow: 0 0 10px rgba(255,215,0,0.7);
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  50% {
    transform: translateY(-100px) rotate(180deg) translateX(20px);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-200px) rotate(360deg) translateX(0);
    opacity: 0;
  }
}

@keyframes goldParticle {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg) scale(1.5);
    opacity: 0;
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animated Gold Background */
.gold-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff03 0%, #ffffff38 100%);
}

.gold-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    rgba(255, 215, 0, 0.1),
    rgba(255, 215, 0, 0.05),
    transparent
  );
  animation: waveFlow 20s linear infinite;
  transform: rotate(2deg);
}

.gold-dust {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(255, 215, 0, 0.03) 0%,
    transparent 20%
  );
  animation: dustMove 30s linear infinite;
}

@keyframes waveFlow {
  0% { transform: translateX(-50%) rotate(2deg); }
  100% { transform: translateX(0%) rotate(2deg); }
}

@keyframes dustMove {
  0% { background-position: 20% 30%; }
  50% { background-position: 80% 70%; }
  100% { background-position: 20% 30%; }
}

/* Main Glass Container */
.glass-container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  max-width: 95%;
  height: 96vh;
  margin: 2vh auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

/* Header Styles */
.glass-header {
  display: flex;
  align-items: center;
  padding: 5px 5px;
  background: rgba(255, 255, 255, 0.062);
  border-bottom: 1px solid var(--glass-border);
}

.logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: pulse 3s infinite;
}

.logo-circle img {
  width: 130%; /* Adjust logo size inside the circle */
  height: auto;
 
}

.logo-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 55%
  );
  transform: rotate(30deg);
  animation: shine 5s infinite;
}

.header-text {
  flex: 1;
  text-align: center;
}

.glass-header h1 {
  font-family:'Noto Nastaliq Urdu', Courier, monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: black;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(255, 217, 0, 0.067);
}

.datetime {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: var(--light);
  direction: ltr;
}

/* Main Content */
.glass-main {
  padding-right: 15px;
  flex: 1;
  overflow-y: auto;
}

.table-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.currency-table {
  width: 95%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.currency-table th, .currency-table td {
  
  text-align: center;
  font-weight: 500;
}

.currency-table th {
  background: linear-gradient(135deg, rgba(98, 144, 195, 0.7) 0%, rgba(26, 27, 65, 0.8) 100%);
  color: rgb(255, 255, 255);
  font-size: 1.5rem;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
 
}


.currency-table td {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid #ffffffc4;
  transition: var(--transition);
  font-size: 2rem;

   
}

.currency-table tr:hover td {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Country Column with Flag */
.country-col {
  font-weight: bold;
  border-radius: 0 30px 30px 0;
  width: 180px;
  height: 40px;
  max-width: 180px;
  max-height: 40px;
}

.country-flag {
  display: inline-block;
  width: 180px;
  height: 30px;
  line-height: 30px;
  font-size: 20px;
  text-align: center;
  vertical-align: middle;
}

.country-name {
  display: inline-block;
  vertical-align: middle;
}

.currency-col {
  font-weight: bold;
  width: 80px;
  height: 40px;
  max-width: 80px;
  max-height: 40px;
}

.buy-col {
  background: linear-gradient(135deg, var(--success) 0%, rgba(4, 120, 66, 0.9) 100%) !important;
  color: white !important;
  width: 100px;
  height: 40px;
  max-width: 100px;
  max-height: 40px;
  font-size: 2rem;
  font-weight: bold;
}

.sell-col {
  background: linear-gradient(135deg, var(--error) 0%, rgba(150, 10, 60, 0.9) 100%) !important;
  color: white !important;
  border-radius: 30px 0 0 30px !important;
  width: 150px;
  height: 40px;
  max-width: 100px;
  max-height: 40px;
}

/* Footer Styles */
.glass-footer {

  background: rgba(26, 27, 65, 0.6);
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.glass-footer h3 {
  font-size: 0.9rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
}

.glass-footer i {
  margin-left: 8px;
  color: var(--gold);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
  100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

.updated {
  animation: pulse 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .glass-container {
    height: 98vh;
    margin: 1vh auto;
    background-color: #ffffff17;
  }
  
  .glass-header {
    flex-direction: column;
    padding: 5px;
    background-color: #ffffff17;
  }
  
  .logo-circle {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }
  
  .glass-header h1 {
    font-size: 1.4rem;
  }
  
  .datetime {
    font-size: 0.8rem;
  }
  
  .currency-table th, .currency-table td {
    padding: 3px; 
    font-size: 1rem;
    font-weight: bold;

  }
  
  .country-col {
    width: 150px;
    max-width: 150px;
  }
  
  .country-flag {
    width: 50px;
    font-size: 16px;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .glass-footer h3 {
    font-size: 0.8rem;
    margin: 3px 0;
  }
}