/* ==========================================
   Gecentraliseerde stijlen voor de Indische Recepten website
   ========================================== */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    /* Warme crème achtergrond die doet denken aan rijst of oud papier */
    background-color: #fdf5e6; 
    /* Diepbruine tekstkleur voor een zachte, natuurlijke uitstraling */
    color: #4b2e1e; 
}

header {
    /* Donkere olijfgroene kleur (Gado-Gado/Pandan groen) */
    background-color: #556b2f; 
    color: #fdf5e6; 
    padding: 20px 0;
    text-align: center;
    /* Warme goud/zandkleurige accentlijn */
    border-bottom: 4px solid #b8860b; 
}

h1 {
    margin: 0;
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px;
}

.sidebar {
    width: 250px;
    /* Lichte achtergrond voor het menu met een warme bruine rand */
    background-color: #ffffff;
    padding: 15px 10px;
    border-radius: 8px;
    border: 1px solid #e5d3b3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: calc(100vh - 40px);
}

.content {
    flex-grow: 1;
    background-color: #ffffff; 
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5d3b3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 40px);
}

#recipe-container {
    width: 100%;
}

/* === RECEPT PAGINA STYLING === */

.recipe-body { 
    background-color: transparent; 
    color: #4b2e1e;
    padding: 10px;
}

.intro-tabel { 
    width: 100%; 
    border: 0; 
    /* Subtiele rode 'sambal' lijn aan de linkerzijde */
    border-left: 5px solid #a52a2a; 
    padding-left: 15px;
}

.handtekening { 
    margin-top: 30px; 
    font-weight: bold; 
    /* Accentkleur in goudgeel/kurkuma */
    color: #b8860b; 
}

/* Scrollbalk styling in zand- en olijfkleuren */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #b8860b; 
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background-color: #fdf5e6;
}

/* ==========================================
   PRINT STYLES: Alleen het recept afdrukken
   ========================================== */
@media print {
    /* Verberg menu, header en zoekbalken op papier */
    header, 
    .sidebar, 
    #search-container, 
    #search-popup {
        display: none !important;
    }

    /* Schoon, wit papier zonder kaders of schaduwen */
    body, 
    .container, 
    .content, 
    #recipe-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        border: none !important;
        color: #000000 !important;
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }

    /* Zorg dat kopteksten strak zijn */
    h1, h2, h3 {
        color: #000000 !important;
        page-break-after: avoid !important;
    }

    /* Voorkom lelijke paginasplitsingen midden in tabellen/lijsten */
    ul, ol, table, .intro-tabel {
        page-break-inside: avoid !important;
    }

    .handtekening {
        color: #000000 !important;
    }
}