/* Zyco Digital - Tahsilat Sistemi v2 */
:root {
  --zyco-primary: #f5b820;
  --zyco-primary-hover: #e3a91c;
  --zyco-primary-light: #fef5e0;
  --zyco-secondary: #2e2e33;
  --zyco-secondary-hover: #3d3d43;
  --zyco-success: #059669;
  --zyco-error: #dc2626;
}
body { font-family: "Poppins", system-ui, -apple-system, sans-serif; }
[x-cloak] { display: none !important; }

/* Animasyonlar */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes successPulse {
  0%   { transform: scale(0); opacity: 0; }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes checkDraw {
  from { stroke-dashoffset: 48; }
  to   { stroke-dashoffset: 0; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-6px); }
  30%, 60%, 90% { transform: translateX(6px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes confettiDrop {
  0%   { opacity: 1; transform: translateY(-20px) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes progressBar {
  from { width: 0; }
  to   { width: 100%; }
}

.anim-fade-up      { animation: fadeInUp 0.6s ease-out both; }
.anim-fade-down    { animation: fadeInDown 0.5s ease-out both; }
.anim-fade-in      { animation: fadeIn 0.5s ease-out both; }
.anim-scale-in     { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.anim-slide-right  { animation: slideInRight 0.5s ease-out both; }
.anim-success      { animation: successPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.anim-shake        { animation: shake 0.6s ease-in-out; }
.anim-float        { animation: float 3s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }

/* Kartlar */
.card-zyco {
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  transition: box-shadow 0.3s;
}

/* Ozet satir */
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(245,184,32,0.12);
}
.summary-row:last-child { border-bottom: none; }

/* IBAN kutu */
.iban-box {
  background: rgba(245,184,32,0.08);
  border: 1px solid rgba(245,184,32,0.18);
  border-radius: 0.75rem;
}

/* Input */
.input-zyco {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: rgba(248,250,252,0.5);
  font-size: 0.875rem;
  color: #2e2e33;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-zyco::placeholder { color: #94a3b8; }
.input-zyco:focus {
  outline: none;
  border-color: var(--zyco-primary);
  box-shadow: 0 0 0 3px rgba(245, 184, 32, 0.15);
}

/* Butonlar */
.btn-zyco {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.75rem; font-weight: 600;
  transition: all 0.2s;
  cursor: pointer; border: none;
}
.btn-zyco:hover { transform: translateY(-1px); }
.btn-zyco:active { transform: translateY(0); }

.btn-zyco-primary { background: var(--zyco-primary); color: var(--zyco-secondary); }
.btn-zyco-primary:hover { background: var(--zyco-primary-hover); box-shadow: 0 8px 24px rgba(245,184,32,0.25); }

.btn-zyco-secondary { background: var(--zyco-secondary); color: #fff; }
.btn-zyco-secondary:hover { background: var(--zyco-secondary-hover); box-shadow: 0 8px 24px rgba(46,46,51,0.2); }

.btn-zyco-outline {
  background: transparent; color: #475569;
  border: 2px solid #e2e8f0;
}
.btn-zyco-outline:hover { border-color: #cbd5e1; background: rgba(248,250,252,0.8); }

/* Success check SVG */
.success-check-circle { fill: none; stroke: #059669; stroke-width: 2; stroke-linecap: round; }
.success-check-path {
  fill: none; stroke: #059669; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: checkDraw 0.5s ease-out 0.4s forwards;
}

/* Confetti */
.confetti-piece {
  position: fixed; top: -10px; width: 8px; height: 8px; border-radius: 2px;
  animation: confettiDrop 2.5s ease-in forwards;
  z-index: 100;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 639px) {
  /* Genel */
  body { -webkit-text-size-adjust: 100%; }
  
  /* Header kompakt */
  .header-zyco { padding: 0.75rem 1rem !important; }
  .header-zyco img { height: 1.5rem !important; }
  
  /* Kart padding */
  .card-zyco { border-radius: 1rem; }
  
  /* Input daha kompakt */
  .input-zyco { padding: 0.75rem 0.875rem; font-size: 1rem; /* iOS zoom engeller */ }
  
  /* Butonlar full-width */
  .btn-zyco-primary { font-size: 0.9375rem; }
  
  /* İletişim modalı */
  .modal-contact { margin: 0.5rem; }
  
  /* Alt bar stack */
  .altbar-responsive {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
  }
  .altbar-responsive .altbar-buttons { 
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }
  .altbar-responsive .altbar-buttons a {
    flex: 1;
    justify-content: center;
    text-align: center;
    font-size: 0.8125rem;
    padding: 0.625rem 0.75rem;
  }
  
  /* Makbuz tablo scroll */
  .receipt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .receipt-table-wrap table { min-width: 320px; }
}

@media (max-width: 479px) {
  /* Çok küçük ekranlar */
  .header-logo-text { display: none !important; }
  
  /* IBAN font küçült */
  .iban-font-responsive { font-size: 11px !important; letter-spacing: 0.02em !important; }
}

/* Safe area padding (notch ekranlar) */
@supports (padding: max(0px)) {
  .safe-bottom { padding-bottom: max(0.75rem, env(safe-area-inset-bottom)); }
}

/* Touch friendly */
@media (hover: none) and (pointer: coarse) {
  .btn-zyco, a.inline-flex, button { min-height: 44px; }
  .input-zyco { min-height: 48px; }
}

/* ===== Panel & Dashboard ===== */

/* Sidebar - beyaz tema scrollbar */
aside { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.06) transparent; }
aside::-webkit-scrollbar { width: 3px; }
aside::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.06); border-radius: 4px; }
aside::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.12); }
aside nav { scrollbar-width: none; }
aside nav::-webkit-scrollbar { display: none; }

/* Sidebar nav active indicator */
aside button, aside a {
  position: relative;
}

/* Stat card hover */
.stat-card-hover:hover .stat-icon { transform: scale(1.1); }
.stat-icon { transition: transform 0.3s ease; }

/* Table row hover effect */
tbody tr { transition: background-color 0.15s ease; }

/* Chart container */
.chart-container { position: relative; }

/* Toggle switch animation */
.peer:checked ~ div::after { transform: translateX(100%); }

/* Panel scrollbar */
main::-webkit-scrollbar { width: 5px; }
main::-webkit-scrollbar-track { background: transparent; }
main::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.06); border-radius: 4px; }
main::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.12); }

/* Prevent horizontal overflow */
main { overflow-x: hidden; }
.overflow-x-auto { -webkit-overflow-scrolling: touch; }

/* Login page styles */
.login-glow {
  box-shadow: 0 0 60px rgba(245, 184, 32, 0.1), 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Notification badge pulse */
@keyframes notifPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.notif-badge { animation: notifPulse 2s ease-in-out infinite; }

/* Status badge styles */
.badge-success { background: rgba(5,150,105,0.08); color: #059669; border: 1px solid rgba(5,150,105,0.15); }
.badge-pending { background: rgba(245,158,11,0.08); color: #d97706; border: 1px solid rgba(245,158,11,0.15); }
.badge-failed  { background: rgba(220,38,38,0.08); color: #dc2626; border: 1px solid rgba(220,38,38,0.15); }
.badge-info    { background: rgba(59,130,246,0.08); color: #2563eb; border: 1px solid rgba(59,130,246,0.15); }

/* Panel responsive - sidebar fixed on mobile */
@media (max-width: 1023px) {
  aside { position: fixed !important; }
}

/* Panel form - flex layout koruması */
#form1.panel-form { display: flex; flex-direction: row; overflow: hidden; }

/* Smooth page transitions */
[x-cloak] { display: none !important; }

/* Print */
@media print {
  body > *:not(main) { display: none !important; }
  .no-print { display: none !important; }
  .card-zyco { box-shadow: none !important; border: 1px solid #ddd !important; }
}
