﻿/* ===========================================================
   BirthForm And Worksheet Type Componet CSS (USED BY MULTIPLE COMPONENTS)
   =========================================================== */

/* ---------------- Birth Form Sidebar ---------------- */
#mySidebar1 {
    position: fixed;
    top: 4.5%;
    left: 3.7%;
    height: 100%;
    width: 0;
    background-image: url('../images/b6.jpg') !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index:1000;
    overflow-y: auto;
    transition: width 0.4s ease-in-out;
    box-shadow: 2px 0px 10px rgba(0,0,0,0.3);
}

    #mySidebar1::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(254, 246, 159,0.5); 
        z-index: -1;
    }
    #mySidebar1.open {
        width: 300px;
    }



/* ---------------- Main Layout Left Sidebar ---------------- */

.sidebar {
    height: 100vh;
    flex-shrink: 0;
    position: fixed;
    top: 4vh;
    left: 0;
    background:lightgrey ;
    box-shadow: 0 2px 12px rgb(255, 211, 1.0);
    border-right: 1px solid darkgray;
    overflow-y: visible !important;
    transition: width 0.8s ease-in-out;
/*    z-index:1000;*/
}

.sidebar-header {
    color: gray;
    background-color: #fef69f;
    border-bottom: 1px solid orange;
}
.content-area {
    flex-grow:1;
    margin-left: 50.5px;
    margin-top: 30px;
}
/* ---------- NAV LINK STYLES ---------- */

.sidebar .nav-link {
    position: relative;
    padding: 15px 10px;
    color: #990000;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

    .sidebar .nav-link:hover {
        background: #f2cb18;
        color: #990000 !important;
    }

.icon-container {
    display: inline-grid;
    align-items: center;
    position: relative;
    width: 10%;
}
    .icon-container i{
        font-size:1pc;
    }
/* Small sub text (like small font label) */
.icon-sub-text {
    font-size:xx-small;
    font-weight: 600;
    margin-left: -2px;
    margin-top: -5px;
}

.sidebar .nav-link .icon-label {
    position: absolute;
    left: 20px;
    background: #f2cb18;
    color: #990000;
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

    .sidebar .nav-link:hover .icon-label {
        opacity: 1;
        transform: translateX(0);
        left: 55px;
        z-index: 10000;
    }
.form-section {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

    .form-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
/*==============Birth Data Form Button ===================*/
.dual-sub-btn {
    background: transparent;
    border: 1px solid #1a237e;
    color: #1a237e;
    border-radius: 0px;
    padding: 1px 8px;
    font-size: 11px;
    cursor: pointer;
    line-height: 1.6;
    transition: background 0.15s;
    white-space: nowrap;
}

    .dual-sub-btn:hover {
        background: rgba(26,35,126,0.1);
    }
/*========================================*/
    /* ---------- MOBILE ---------- */
    @media (max-width: 768px) {
        .sidebar {
            transform: translateX(-100%);
            z-index: 1050;
        }

            .sidebar.show {
                transform: translateX(0);
            }

        .content-area {
            margin-left: 0;
            width: 100vw;
        }
    }
