* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}

.emergency-contact-card {
    box-shadow: 0 4px 7px #00000015;
    border-radius: 12px;
    max-width: 300px;
    width: 100%;
    height: 335px;
}

.welfare-main{
    min-height: calc(100vh - 86px);
    max-height: calc(100vh - 86px);
    overflow: auto;
}

.eofficeuser-main{
    min-height: calc(100vh - 86px);
    max-height: calc(100vh - 86px);
    overflow: auto;
}

.advisories-main{
    min-height: calc(100vh - 86px);
    max-height: calc(100vh - 86px);
    overflow: auto;
}

.emergency-contacts-section{
    min-height: calc(100vh - 86px);
    max-height: calc(100vh - 86px);
    overflow: auto;
}

/* Navigation Bar Base Styles */
.top-navigation {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.bg-body-tertiary {
    background-color: #4B8C66 !important;
    color: #ffffff;
    max-height: 65px;
}

.navbar {
    padding: 0;
    width: 100%;
    max-width: none;
}

.navbar>.container,
.navbar>.container-fluid {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.navbar-container {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.navbar-brand {
    flex-shrink: 0;
}

.navbar-brand img {
    height: 36px;
    width: auto;
}

.navbar-collapse {
    flex: 1;
    justify-content: center;
}

/* Mobile and Tablet navigation styles */
@media (max-width: 1024px) {
    .navbar-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .navbar-brand {
        order: 1;
        flex-shrink: 0;
    }

    .navbar-toggler {
        order: 3;
        display: block !important;
        border: 1px solid #01411C;
        padding: 8px 12px;
        border-radius: 5px;
        background-color: transparent;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(1, 65, 28, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-collapse {
        order: 4;
        width: 100%;
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 20px;
        border-top: 1px solid #e9ecef;
        flex-direction: column;
    }

    .navbar-collapse.show {
        display: flex !important;
    }

    .navbar-nav {
        flex-direction: column;
        text-align: left;
        width: 100%;
        margin: 0;
        padding: 0;
        order: 1;
    }

    .navbar-nav .nav-item {
        margin-bottom: 8px;
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        border-radius: 5px;
        background-color: #f8f9fa;
        margin-bottom: 5px;
        color: #01411C !important;
        font-weight: 500;
        display: block;
        width: 100%;
        text-align: left;
    }

    .navbar-nav .nav-link:hover {
        background-color: #EBF4EF;
    }

    .navbar-nav .nav-link.active {
        background-color: #EBF4EF;
        color: #01411C !important;
        font-weight: 600;
    }

    .topNav-buttons {
        order: 2;
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #e9ecef;
    }

    .topNav-buttons .btn {
        width: 100%;
        padding: 12px 15px;
    }

    /* Mobile dropdown menu styles */
    .top-navigation .navbar .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 5px;
        border: none;
        box-shadow: none;
        background-color: #f8f9fa;
        border-radius: 5px;
    }

    .top-navigation .navbar .dropdown-menu .dropdown-item {
        padding: 10px 20px;
        color: #01411C;
        background-color: transparent;
        border: none;
    }

    .top-navigation .navbar .dropdown-menu .dropdown-item:hover {
        background-color: #EBF4EF;
        color: #01411C;
    }
}

.navbar-nav {
    justify-content: center;
    flex: 1;
}

.navbar-nav .nav-link {
    color: #dee9e2 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    text-align: center;
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: #ffffff;
    font-weight: 600;
}

.topNav-buttons {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-navigation .navbar .navbar-container .topNav-buttons .btn {
    font-size: 14px;
    font-weight: 500;
}

.top-navigation .navbar .navbar-container .topNav-buttons .btn-success {
    background-color: #01411C;
    border: none;
}

.top-navigation .navbar .navbar-container .topNav-buttons .btn-outline-success {
    border-color: #01411C;
    color: #01411C;
}

.top-navigation .navbar .navbar-container .topNav-buttons .btn-outline-success:hover {
    background-color: #01411C;
    color: #fff !important;
    border: none;
}

.top-navigation .navbar-container .navbar-collapse .nav-item a {
    font-weight: 600;
    font-size: 12px;
}

/* Dropdown Menu Styles */
.top-navigation .navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 5px;
}

.top-navigation .navbar .dropdown-menu .dropdown-item {
    font-weight: 500;
    color: #01411C;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.top-navigation .navbar .dropdown-menu .dropdown-item:hover {
    background-color: #EBF4EF;
    color: #01411C;
}

/* Sign Up Button Styles */
.top-navigation .navbar .navbar-container .topNav-buttons .btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
    background-color: transparent;
}

.top-navigation .navbar .navbar-container .topNav-buttons .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff !important;
    border-color: #0d6efd;
}