body {
    font-family: 'Segoe UI', Arial, sans-serif;
    padding-top: 60px;
    background-color: #f8f9fa;
}

.menu-container {
    position: fixed;
    height: 60px;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.confirm-hours {
    background-color: red !important;
}

.greeting {
    position: absolute;
    top: 50%;
    margin-left: 5px;
    transform: translateY(-50%);
    left: 50px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    z-index: 9;
}

.orange {
    background-color: orange;
}

.hamburger-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    margin-left: 16px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.hamburger-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-icon div {
    width: 25px;
    height: 2px;
    background-color: #2c3e50;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu {
    position: fixed;
    top: 60px;
    left: -280px;
    width: 280px;
    height: calc(100vh - 60px);
    background-color: #ffffff;
    z-index: 999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    /* Ensure bottom links are accessible on mobile Safari */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.menu.active {
    left: 0;
}

.menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #7f8c8d;
}

.menu a:hover {
    background-color: #f8f9fa;
    border-left-color: #3498db;
    color: #3498db;
}

.menu a:hover i {
    color: #3498db;
}

.menu hr {
    margin: 10px 20px;
    border: none;
    border-top: 1px solid #e9ecef;
    background-color: transparent;
}

.menu .bottom-links {
    margin-top: auto;
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
}

.menu .bottom-links hr {
    display: none;
}

.menu .bottom-links a {
    color: #7f8c8d;
}

.menu .bottom-links a:hover {
    color: #3498db;
}

.update-password {
    background-color: orange;
    display: block;
    padding: 10px;
    color: black;
    text-align: center;
}

.overlay {
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.content-wrapper {
    margin-top: 60px;
    margin-left: 0;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-wrapper-login {
    padding: 20px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 14px;
    background-color: transparent;
}

.breadcrumb-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.breadcrumb-nav a:hover {
    background-color: #f8f9fa;
    color: #2980b9;
}

.breadcrumb-nav a i {
    font-size: 13px;
    color: #7f8c8d;
}

.breadcrumb-nav a:hover i {
    color: #2980b9;
}

.breadcrumb-nav .separator {
    margin: 0 4px;
    color: #bdc3c7;
    font-weight: 300;
    user-select: none;
}

.breadcrumb-nav a:last-child {
    color: #2c3e50;
    pointer-events: none;
    cursor: default;
}

.breadcrumb-nav a:last-child:hover {
    background-color: transparent;
}

.breadcrumb-nav a:last-child i {
    color: #2c3e50;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .menu {
        /* Use dynamic viewport height for mobile Safari with fallbacks */
        height: calc(var(--vh, 1vh) * 100 - 60px);
        /* Add extra padding for Safari address bar */
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    }

    .menu .bottom-links {
        /* Ensure bottom links have enough space */
        padding-bottom: 20px;
        margin-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* Navigation badge styling */
.nav-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Contractor Walkthrough Navigation Alert Styling */
#contractor-walkthrough-nav.nav-alert {
    background: rgba(220, 53, 69, 0.15);
    border-left: 3px solid #dc3545;
}

#contractor-walkthrough-nav.nav-alert:hover {
    background: rgba(220, 53, 69, 0.25);
}

/* Light red background for support qualified users */
#contractor-walkthrough-nav.support-qualified {
    background: rgba(220, 53, 69, 0.08);
    border-left: 3px solid #dc3545;
}

#contractor-walkthrough-nav.support-qualified:hover {
    background: rgba(220, 53, 69, 0.15);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Ensure nav links with badges have relative positioning */
.menu a {
    position: relative;
}