@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

body { 
    font-family: 'Quicksand', sans-serif; 
    background-color: #FFFDF7; 
    color: #2D3748; 
    overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6, .font-heading { 
    font-family: 'Fredoka', cursive; 
}

.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #4EA8DE; border-radius: 10px; }
.preserve-whitespace { white-space: pre-line; }

/* EXCEL IMPORTED TABLE BİÇİMLENDİRME DESTEĞİ */
.excel-imported-table table { width: 100% !important; border-collapse: collapse !important; background-color: #ffffff; border-radius: 0.75rem; overflow: hidden; font-size: 12px !important; }
.excel-imported-table td, .excel-imported-table th { padding: 8px 10px !important; border: 1px solid #cbd5e1 !important; text-align: left !important; white-space: normal !important; word-break: break-word; }

@media (max-width: 640px) { 
    input, select, textarea { font-size: 16px !important; } 
}

@media print {
    @page { size: A4 portrait; margin: 5mm; }
    html, body { background: white !important; color: black !important; font-size: 8pt !important; height: auto !important; overflow: visible !important; }
    header, footer, .no-print, #toast-message, #admin-auth-modal, .top-bar-strip { display: none !important; }
    main { padding: 0 !important; margin: 0 !important; }
    .print-container { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: none !important; }
    .print-header { display: flex !important; align-items: center; justify-content: space-between; border-bottom: 2px solid #333; padding-bottom: 8px; margin-bottom: 12px; }
    .print-header img { height: 45px; width: auto; }
    .print-title { text-align: right; }
    .print-title h2 { font-size: 14pt; font-weight: bold; margin: 0; }
    .print-title p { font-size: 9pt; color: #555; margin: 0; }
}

/* === KULLANICI ISTEKLERI ILE EKLENEN OZEL DUZENLEMELER === */

/* 1. Kurumsal & Acilir Menu Hover (Ustune Gelince Acilma) */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0;
        animation: fadeInMenu 0.25s ease-in-out;
    }
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 2. Ust Bar Hizalamalari ve Standart Gorunum */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    font-size: 0.9rem;
    width: 100%;
}

.top-bar .container, .top-bar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a, .top-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 3. Yemek Menusu A4 Tek Sayfa Yazdirma (Print) Ayari */
@media print {
    @page {
        size: A4 portrait;
        margin: 0.8cm;
    }
    
    header, footer, nav, .top-bar, .no-print, .btn, .breadcrumb, .navbar {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 10pt !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container, .main-content, main {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: avoid !important;
    }

    th, td {
        padding: 4px 6px !important;
        font-size: 9pt !important;
        border: 1px solid #333333 !important;
    }

    h1, h2, h3 {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        font-size: 14pt !important;
        text-align: center !important;
    }
}
