@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary-color: #059669; /* Emerald 600 */
  --primary-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --gold-accent: #fbbf24;
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  line-height: 2.2;
  text-align: right;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 24px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5%;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .nav-links {
  display: flex;
  gap: 32px;
}

.navbar .nav-links a {
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.2s ease;
  position: relative;
}

.navbar .nav-links a:hover {
  color: var(--primary-color);
}

.theme-toggle {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--border-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
  width: 100%;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 60px 20px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-section p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.6);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 24px;
}
.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Dashboard Widgets */
.widget {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prayer-time-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}
.prayer-time-item:last-child {
  border-bottom: none;
}
.prayer-time-item.active {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Icons */
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  transition: all 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: auto;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none; 
  }
  .hero-section {
    padding: 40px 20px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}
