
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 25%, #16213e 50%, #0f3460 75%, #1a1f3a 100%);
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
        }

        .error-box {
            background: rgba(255,255,255,0.15);
            padding: 35px;
            width: 450px;
            border-radius: 20px;
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            text-align: center;
            animation: fadeIn 0.5s ease;
        }

        .error-title {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .error-sub {
            font-size: 15px;
            margin-bottom: 25px;
            opacity: 0.85;
        }

        details {
            margin-top: 10px;
            cursor: pointer;
            font-size: 14px;
            color: #f3f4f6;
        }

        details div {
            margin-top: 10px;
            background: rgba(255,255,255,0.15);
            padding: 12px;
            border-radius: 10px;
            text-align: left;
            font-size: 13px;
            word-break: break-all;
        }

        button {
            margin-top: 25px;
            padding: 12px 22px;
            border: none;
            background: #fbbf24;
            color: #000;
            font-weight: 600;
            font-size: 14px;
            border-radius: 8px;
            cursor: pointer;
            transition: 0.2s;
        }

        button:hover {
            background:#f59e0b;
        }

        @keyframes fadeIn {
          from { opacity:0; transform:translateY(20px); }
          to { opacity:1; transform:translateY(0); }
        }
    </style>

    <div class="error-box">
        <div class="error-title">⚠ Veritabanı Bağlantısı Başarısız</div>

        <div class="error-sub">
            Sunucuya bağlanılamadı. Lütfen daha sonra tekrar deneyiniz.
        </div>

        <details>
            <summary>Hata Detayları</summary>
            <div>SQLSTATE[HY000] [2002] Connection refused</div>
        </details>

        <button onclick="location.reload()">Tekrar Dene</button>
    </div>
    