/* =========================================
   LAYOUT.CSS — STRUCTURE & PAGE GEOMETRY
   ========================================= */

/* ---------------------------
   HEADER POSITIONING
---------------------------- */
#site-header {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    padding: 20px 0 18px;
}

/* ---------------------------
   MAIN LAYOUT WRAPPER
---------------------------- */
#layout {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: calc(100vh - 120px); /* header height + spacing */
    padding: 0 18px 18px;
    gap: 16px;
    overflow: hidden; /* prevents outer scrollbars */
}

/* ---------------------------
   SIDEBAR STRUCTURE
---------------------------- */
#sidebar {
    width: 260px;
    height: 100%;
    overflow-y: auto;
    padding: 18px 18px 20px;
}

/* ---------------------------
   CONTENT PANEL STRUCTURE
---------------------------- */
#content {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 20px 22px 22px;
}

/* ---------------------------
   RESPONSIVE LAYOUT
---------------------------- */
@media (max-width: 900px) {
    #layout {
        flex-direction: column;
        padding: 0 12px 14px;
    }

    #sidebar {
        width: 100%;
    }

    #content {
        max-height: none;
    }
}

@media (max-width: 600px) {
    #site-header h1 {
        font-size: 1.7rem;
        letter-spacing: 0.08em;
    }

    #sidebar {
        padding: 14px 14px 16px;
    }

    #content {
        padding: 16px 16px 18px;
    }
}

/* =========================================
   GLOBAL INPUT THEME — WARM PARCHMENT
   ========================================= */

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea,
select {
    background-color: #f7e7c6; /* warm parchment */
    color: #2a1f0f;            /* dark brown ink */
    border: 1px solid rgba(255, 204, 102, 0.45); /* soft gold edge */
    border-radius: 4px;
    padding: 0.35rem 0.5rem;
    font-size: 1rem;
    transition: 
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(255, 204, 102, 0.75);
    box-shadow: 0 0 6px rgba(255, 204, 102, 0.5);
}
