<?php
include("code/yonlendirme.php");
include("code/baglan.php");
include("code/fonksiyonlar.php");
?>
<!DOCTYPE html>
<html lang="tr">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo $title; ?> - Yönetim Paneli</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    
    <style>
        body {
            background-color: #f8f6f4;
            color: #4e342e;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        .bg-coffee {
            background-color: #3d251e !important;
        }
        .text-coffee-gold {
            color: #d4af37 !important;
        }
        .text-coffee {
            color: #3d251e !important;
        }
        .btn-coffee {
            background-color: #795548;
            color: white;
            border: none;
            transition: all 0.3s ease;
        }
        .btn-coffee:hover {
            background-color: #5d4037;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        .btn-outline-coffee {
            border: 2px solid #795548;
            color: #795548;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        .btn-outline-coffee:hover {
            background-color: #795548;
            color: white;
        }
        .badge-coffee {
            background-color: #795548;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
        }
        .border-bottom-light {
            border-bottom: 1px solid #f1effd !important;
        }
        @media (min-width: 992px) {
            .border-end-lg {
                border-right: 1px solid #e9ecef;
            }
        }
    </style>
</head>

<body>
    <?php
    include("code/links.php");
    ?>
    
    <div class="container mt-4" style="min-height: 70vh;">
        <div class="card border-0 shadow-sm rounded-4 bg-white p-4 p-md-5">
            <?php
            include("code/$dosya");
            ?>
        </div>
    </div>

    <footer class="text-center text-muted bg-coffee py-3 mt-5">
        <div class="container">
            <p class="text-white mb-0">Barista's Choice &copy; 2026 - Yönetim Paneli</p>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>

    <?php
    mysqli_close($conn);
    ?>
</body>

</html>
