@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #10b981;
  --secondary-color: #3b82f6;
  --accent-color: #f59e0b;
}

body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  /* Daha belirgin arka plan görseli */
  background-image: linear-gradient(rgba(240, 253, 244, 0.85), rgba(240, 253, 244, 0.85)), url('https://images.unsplash.com/photo-1564648351416-3eec9f3e85de?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1; 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; 
}

/* Input Focus Effects */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
  color: var(--primary-color);
}

/* Card Hover Effect */
.hover\:shadow-md:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Result Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Loading Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Dark Mode Transitions */
.dark body {
  background-color: #064e3b;
  color: #f3f4f6;
  background-image: linear-gradient(rgba(6, 78, 59, 0.9), rgba(6, 78, 59, 0.9)), url('https://images.unsplash.com/photo-1564648351416-3eec9f3e85de?q=80&w=2000&auto=format&fit=crop');
}

/* Badge Styles */
.badge-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.dark .badge-success {
  background-color: rgba(6, 95, 70, 0.2);
  color: #6ee7b7;
  border-color: rgba(6, 95, 70, 0.4);
}

.badge-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.dark .badge-error {
  background-color: rgba(153, 27, 27, 0.2);
  color: #fca5a5;
  border-color: rgba(153, 27, 27, 0.4);
}

/* Input Styles */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* PRINT STYLES */
/* -------------------------------------------------------------------------- */
@media print {
  @page {
    margin: 0;
    size: auto;
  }

  body * {
    visibility: hidden;
  }

  #print-area, #print-area * {
    visibility: visible;
  }

  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: white;
    display: block !important;
  }

  /* Reset layout for print */
  body {
    background: white !important;
    padding: 0;
    margin: 0;
  }

  .print-container {
    max-width: 100%;
    margin: 0;
    border: none;
    padding: 0;
  }

  /* Header */
  .print-header {
      text-align: center;
      margin-bottom: 20px;
  }

  .company-name {
      font-size: 28px;
      font-weight: bold;
      color: #1a1a1a;
      letter-spacing: 1px;
      margin-bottom: 5px;
  }

  .company-slogan {
      font-size: 14px;
      color: #666;
      font-style: italic;
      margin-bottom: 15px;
  }

  .company-info {
      font-size: 12px;
      color: #444;
      line-height: 1.4;
  }

  .print-divider {
      border: 0;
      border-top: 2px solid #333;
      margin: 20px 0;
  }

  /* Content */
  .print-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 25px;
      border-bottom: 1px solid #eee;
      padding-bottom: 10px;
  }

  .print-date {
      font-size: 12px;
      color: #666;
  }

  .print-title {
      font-size: 18px;
      font-weight: bold;
      text-transform: uppercase;
  }

  .print-summary-box {
      margin-bottom: 30px;
  }

  .summary-row {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      border-bottom: 1px dashed #ddd;
      font-size: 14px;
  }

  .summary-row.highlight {
      font-weight: bold;
      font-size: 16px;
      border-bottom: 2px solid #333;
      margin-top: 10px;
      padding-top: 15px;
  }

  /* Zakat Box */
  .print-zakat-box {
      background-color: #f9fafb;
      border: 2px solid #10b981;
      padding: 20px;
      text-align: center;
      border-radius: 10px;
      margin-bottom: 30px;
      -webkit-print-color-adjust: exact;
  }

  .zakat-label {
      font-size: 14px;
      text-transform: uppercase;
      color: #047857;
      margin-bottom: 5px;
      font-weight: bold;
  }

  .zakat-amount {
      font-size: 32px;
      font-weight: bold;
      color: #047857;
  }

  .zakat-note {
      font-size: 12px;
      margin-top: 5px;
      color: #065f46;
  }

  /* Details */
  .print-details {
      margin-top: 20px;
  }

  .print-details h3 {
      font-size: 14px;
      font-weight: bold;
      border-bottom: 1px solid #333;
      padding-bottom: 5px;
      margin-bottom: 10px;
  }

  .print-details ul {
      list-style: none;
      padding: 0;
  }

  .print-details li {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      padding: 4px 0;
      color: #555;
  }

  /* Footer */
  .print-footer {
      margin-top: 50px;
      text-align: center;
      font-size: 12px;
      color: #666;
  }

  .ramadan-msg {
      font-size: 16px;
      font-weight: bold;
      margin: 10px 0;
      font-family: 'Inter', sans-serif;
  }
  
  .footer-small {
      font-size: 10px;
      color: #999;
      margin-top: 20px;
  }
}
