@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: "Poppins", sans-serif;
    margin: 0; /* Ensure no default margin affects layout */
}

.email::before {
    content: "Email";
    background: white;
    position: absolute;
}

@media (width < 1024px) {
    .inputc {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gap {
        gap: 8px;
    }
}

input:focus {
    outline: none;
}

select:focus {
    outline: none;
}

/* Sidebar positioning for desktop and mobile */
#sidebar {
    height: auto;
    width: 20rem; /* Match the w-[20rem] from leftbar.php */
    transition: left 0.3s ease-in-out;
    z-index: 50; /* Ensure sidebar is above other content */
}

/* Desktop: Sidebar is in the document flow */
@media (min-width: 1024px) {
    #sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
}

/* Mobile: Sidebar is fixed and toggled */
@media (max-width: 1024px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        min-height: 100%;
        overflow-y: auto;
    }
}
