<!DOCTYPE html>
<?php echo "<!-- Aktif dosya çalışıyor -->"; ?>
<html lang="tr">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Teklif Görüntüle</title>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
  <style>
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
      color: #fff;
      animation: fadeIn 1.5s ease-in;
    }
    .sayfa {
      max-width: 900px;
      margin: 60px auto;
      padding: 40px;
      background: rgba(255,255,255,0.05);
      border-radius: 25px;
      backdrop-filter: blur(12px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.4);
      border: 1px solid rgba(255,255,255,0.1);
    }
    .logo {
      text-align: center;
      margin-bottom: 30px;
    }
    .logo img {
      max-width: 200px;
    }
    h1 {
      text-align: center;
      color: #ff800a;
      font-weight: 800;
      font-size: 32px;
      text-shadow: 1px 1px 4px #000;
    }
    .bilgi p {
      margin: 12px 0;
      line-height: 1.6;
      font-size: 16px;
    }
    .bilgi p strong {
      color: #ffcc80;
    }
    .footer {
      margin-top: 30px;
      font-weight: 700;
      font-size: 20px;
      text-align: right;
      color: #ffcc80;
      border-top: 1px solid #444;
      padding-top: 15px;
    }
    @media (max-width: 768px) {
      .sayfa {
        padding: 30px 20px;
      }
      .footer {
        font-size: 18px;
        text-align: center;
      }
    }
    @keyframes fadeIn {
      from {opacity: 0; transform: translateY(20px)}
      to {opacity: 1; transform: translateY(0)}
    }
  </style>
</head>
<body>
  <div class="sayfa">
    <div class="logo">
      <img src="https://tek.wanyweb.com/zetcarvelogos-removebg-preview.png" alt="Firma Logosu">
    </div>
    <h1>TEKLİF BELGESİ</h1>
    <div class="bilgi">
      <p><strong>Ad Soyad:</strong> <?= htmlspecialchars($teklif['adsoyad']) ?></p>
      <p><strong>Firma:</strong> <?= htmlspecialchars($teklif['firma_adi']) ?></p>
      <p><strong>Telefon:</strong> <?= htmlspecialchars($teklif['telefon']) ?></p>
      <p><strong>E-posta:</strong> <?= htmlspecialchars($teklif['email']) ?></p>
      <p><strong>Adres:</strong> <?= htmlspecialchars($teklif['adres']) ?></p>
      <p><strong>Vergi No:</strong> <?= htmlspecialchars($teklif['vergi_no']) ?></p>
      <p><strong>Vergi Dairesi:</strong> <?= htmlspecialchars($teklif['vergi_dairesi']) ?></p>
      <p><strong>Fatura Talebi:</strong> <?= $teklif['fatura_istek'] === 'evet' ? 'Evet' : 'Hayır' ?></p>
      <p><strong>Açıklama:</strong> <?= nl2br(htmlspecialchars($teklif['notlar'])) ?></p>
    </div>
    <div class="footer">
      TEKLİF TUTARI: <?= number_format((float)$teklif['teklif_tutari'], 2, ',', '.') ?> TL
    </div>
  </div>
</body>
</html>
