/* 
   Camp Peduli Palestina - Modern Islamic Theme Design System
   Color Palette: Emerald Green, Gold, Crisp White, Palestinian Red Accent
*/

:root {
  --primary-emerald: #064e3b;
  --emerald-medium: #047857;
  --emerald-light: #059669;
  --emerald-bg: #f0fdf4;
  --primary-gold: #d97706;
  --gold-accent: #f59e0b;
  --gold-light: #fffbeb;
  --palestine-red: #dc2626;
  --dark-text: #1f2937;
  --muted-text: #6b7280;
  --card-shadow: 0 12px 28px -6px rgba(6, 78, 59, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --card-radius: 18px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f8fafc;
  color: var(--dark-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Banner */
.hero-header {
  background: linear-gradient(135deg, #04392a 0%, #064e3b 50%, #065f46 100%);
  color: #ffffff;
  padding: 2.5rem 1rem 3.5rem 1rem;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(4, 57, 42, 0.25);
}

.hero-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.palestine-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fef08a;
  margin-bottom: 12px;
}

.flag-stripe {
  display: inline-flex;
  height: 10px;
  width: 18px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.flag-black { background-color: #000; flex: 1; }
.flag-white { background-color: #fff; flex: 1; }
.flag-green { background-color: #007a3d; flex: 1; }

.header-title {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  color: #ffffff;
}

@media (min-width: 768px) {
  .header-title {
    font-size: 2.3rem;
  }
}

.header-subtitle {
  font-size: 0.95rem;
  color: #d1fae5;
  max-width: 550px;
  margin: 0 auto;
}

/* Card Styling */
.main-card {
  background: #ffffff;
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header-islamic {
  background: linear-gradient(to right, #f0fdf4, #fffbeb);
  border-bottom: 2px solid #e5e7eb;
  padding: 1.25rem 1.5rem;
  border-top-left-radius: var(--card-radius) !important;
  border-top-right-radius: var(--card-radius) !important;
}

.card-header-islamic h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-emerald);
  margin: 0;
}

.card-header-islamic p {
  font-size: 0.875rem;
  color: var(--muted-text);
  margin: 4px 0 0 0;
}

/* Form Elements */
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  border-radius: 12px;
  border: 1.5px solid #d1d5db;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
  background-color: #f9fafb;
}

.form-control:focus, .form-select:focus {
  background-color: #ffffff;
  border-color: var(--emerald-medium);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.input-group-text-rp {
  background-color: #ecfdf5;
  border: 1.5px solid #d1d5db;
  border-right: none;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  font-weight: 700;
  color: var(--primary-emerald);
  padding: 0.7rem 0.9rem;
}

.input-group-text-rp + .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Buttons */
.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-medium) 0%, var(--primary-emerald) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-emerald:hover, .btn-emerald:focus {
  background: linear-gradient(135deg, #059669 0%, #04392a 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 78, 59, 0.35);
}

.btn-emerald:active {
  transform: translateY(0);
}

.btn-wa-fallback {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-wa-fallback:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* Notification Popup Toast */
.donation-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 330px;
  width: calc(100% - 40px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(6, 78, 59, 0.1);
  border-left: 5px solid var(--emerald-medium);
  z-index: 1060;
  padding: 14px 16px;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.donation-toast.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: slideUpIn 0.5s ease forwards;
}

.donation-toast.hide-toast {
  animation: slideDownOut 0.5s ease forwards;
}

@keyframes slideUpIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideDownOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
}

.toast-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--emerald-bg);
  color: var(--primary-emerald);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.toast-donor-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--dark-text);
  margin: 0;
  line-height: 1.3;
}

.toast-donor-city {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin: 2px 0 0 0;
}

/* Footer */
footer {
  margin-top: auto;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 1.75rem 1rem;
  text-align: center;
  color: #4b5563;
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

/* Admin Dashboard Specific */
.admin-navbar {
  background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--emerald-medium) 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

.stat-card.gold-border {
  border-top: 4px solid var(--primary-gold);
}

.stat-card.emerald-border {
  border-top: 4px solid var(--emerald-medium);
}

.stat-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted-text);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-text);
  margin: 0;
}

.table-responsive {
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.table-custom {
  margin-bottom: 0;
}

.table-custom th {
  background-color: #f8fafc;
  color: #374151;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.table-custom td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  font-size: 0.92rem;
  border-bottom: 1px solid #f1f5f9;
}

.donor-link {
  color: var(--emerald-medium);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.donor-link:hover {
  color: var(--primary-emerald);
  text-decoration: underline;
}

/* Modal styling */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header-islamic {
  background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--emerald-medium) 100%);
  color: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.modal-header-islamic .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
