html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    padding-top: 56px;
    margin-bottom: 60px;
    min-height: 100vh;
}

/* ====== SIDEBAR MENU STYLING START ====== */

/* Sidebar */
.sidebar {
    height: calc(100vh - 56px); /* Adjust for navbar height */
    width: 220px;
    position: fixed;
    top: 56px; /* navbar height */
    left: 0;
    background-color: #343a40;
    padding-top: 1rem;
    overflow-y: auto;
    transition: width 0.3s ease; /* smooth animation */
    white-space: nowrap;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-menu li {
        margin: 10px 0;
    }

        .sidebar-menu li a {
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            border-radius: 5px;
        }

            .sidebar-menu li a:hover {
                background: #495057;
            }

/* +++ added: collapsed state via parent .layout +++ */
.layout.sidebar-collapsed .sidebar {
    width: 60px;
}

.layout.sidebar-collapsed .sidebar-menu li a {
    justify-content: center;
    gap: 0;
}

    .layout.sidebar-collapsed .sidebar-menu li a span {
        display: none; /* hide text, keep icons */
    }

/* Content wrapper */
.content {
    margin-left: 220px; /* match sidebar width */
    width: calc(100% - 220px);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* +++ added: content reacts to layout state +++ */
.layout.sidebar-collapsed .content {
    margin-left: 60px;
    width: calc(100% - 60px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }

    .content {
        margin-left: 0;
        padding-top: 100px;
        width: 100%; /* +++ added for mobile full width +++ */
    }
}

/* ====== SIDEBAR MENU STYLING END ====== */

/* Registration message style */
.info-msg-stl {
    color: red;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    margin: 15px 0;
    animation: flashText 1s infinite;
}

@keyframes flashText {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
