@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.inter-font {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

* {
    font-family: "Inter", serif;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a,
#forgotPass {
    text-decoration: none;
}

/* Top Navbar */
.navbar {
    background-color: #212529 !important;
    height: 56px;
    z-index: 1030;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* Wrapper around sidebar and content */
.wrapper {
    display: flex;
    height: 100%;
    padding-top: 56px;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #212529;
    color: #f8f9fa;
    padding: 1rem;
    overflow-y: auto;
    height: 100vh;
    position: fixed;
    top: 56px;
    left: 0;
    z-index: 1040;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
}

/* Collapsed sidebar (hidden) */
.sidebar.collapsed {
    transform: translateX(-250px);
}

/* Main content area */
.content {
    margin-left: 250px;
    flex-grow: 1;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 2rem;
    height: 100%;
    transition: margin-left 0.3s ease-in-out;
}

/* Shift content when sidebar is collapsed */
.content.shifted {
    margin-left: 0;
}

.sidebar h6,
.sidebar-heading {
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #adb5bd;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Sidebar links */
.nav-link {
    color: #dee2e6;
    font-weight: 500;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link i {
    margin-right: 0.5rem;
    padding: 5px;
}

.nav-link:hover {
    background-color: #343a40;
    color: #ffffff;
}

.nav-link.active {
    background-color: #0d6efd;
    color: #ffffff;
}

/* Responsive behavior */
@media (max-width: 991.98px) {
    .wrapper {
        flex-direction: column;
        height: 100%;
    }

    .sidebar {
        position: absolute;
        z-index: 1050;
        width: 250px;
        height: 100vh;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        display: block;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .content {
        height: auto;
        padding: 1rem;
        overflow-y: visible;
        margin-left: 0 !important;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .sidebar.show {
        display: block;
    }

    .content.shifted {
        margin-left: 0;
    }
}

/* Desktop collapsed sidebar */
@media (min-width: 992px) {
    .sidebar.collapsed {
        transform: translateX(-250px);
    }

    .content.shifted {
        margin-left: 0;
    }
}


/* Optional: consistent nav heading color */
#navHeading {
    color: #dee2e6 !important;
}

.mainArea {
    margin: 50px;
    margin-top: 60px;
}


/* Edit form animation */
#editForm {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#editForm.opening {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#editForm.closing {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Table container */
#tableContainer,
#adminTable {
    text-align: center;
    width: auto;
}

#tableContainer th,
#adminTable th {
    background-color: rgba(185, 185, 185, 0.2);
}

/* Headings */
#userManagementHeading,
#cManageHeading,
#childrenForDay {
    margin-top: 20px;
    margin-bottom: 35px;
    text-align: center;
    justify-content: center;
}

#userManagementHeading::after,
#cManageHeading::after,
#childrenForDay::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #007bff;
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

/* Stats container */
#cManageStatsContainer {
    background-color: rgba(185, 185, 185, 0.15);
    border-radius: 10px;
    margin-bottom: 25px;
}

#cManageStatBoxes {
    justify-content: center;
    text-align: center;
}

#dayDropDown {
    width: 100%;
    text-align: center;
}

#dayDropDown a:active {
    background-color: #7373731c;
}

#dayDropDown a:hover {
    color: #0d6efd;
}

#dayDropDown a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: #007bff;
    margin: 0;
    border-radius: 2px;
    transition: width 0.5s ease;
}

#dayDropDown a:hover::after {
    width: 100%;
}