/* _content/CupeyBowlingWebApp/Components/Layout/MainLayout.razor.rz.scp.css */
/* main layout.css */

/* Base layout styling */
.page[b-05lgbna4wi] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure page takes full height */
    z-index: auto !important;
}

main[b-05lgbna4wi] {
    flex: 1; /* Allows main content to grow */
    z-index: 1 !important; /* Ensure main content is behind top-row/sidebar/modals */
    position: relative;
    /* Remove padding-left from here, apply to children */
    /* Add base padding for mobile/default and top/bottom */
    padding: 1rem;
}

/* Sidebar styling */
.sidebar[b-05lgbna4wi] {
    background-image: linear-gradient(180deg, #000000 0%, #222222 70%);
    border-right: 2px solid #c0ff00; /* Neon green border */
    position: relative; /* Base positioning */
    z-index: 9990; /* High z-index but below top-row */
    /* Width and other properties set in media queries */
}

/* Top navigation bar styling (Main layout) */
/* This rule applies to the top-row OUTSIDE the sidebar */
.top-row[b-05lgbna4wi] {
    background-color: #f7f7f7; /* Ensure it has a background */
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem; /* Base height */
    display: flex;
    align-items: center;
    position: relative; /* Base positioning */
    z-index: 9999 !important; /* Critical: Very high z-index */
    /* Base padding for mobile */
    padding-right: 1.5rem;
    /* Padding-left handled in media query */
}

    /* Styles for links directly in the main layout's top row */
    .top-row[b-05lgbna4wi]  a,
    .top-row[b-05lgbna4wi]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-05lgbna4wi]  a:hover,
        .top-row[b-05lgbna4wi]  .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-05lgbna4wi]  a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

/* Content article styling */
article.content[b-05lgbna4wi] {
    position: relative;
    z-index: 1 !important; /* Below top-row */
    /* Padding-left handled in media query */
    /* Add other padding if needed */
    padding-top: 1rem; /* Example */
    padding-bottom: 1rem; /* Example */
}

/* Error UI styling */
#blazor-error-ui[b-05lgbna4wi] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 99999;
}

    #blazor-error-ui .dismiss[b-05lgbna4wi] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Dropdown styling */
.modal-overlay[b-05lgbna4wi] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 100000;
}

.absolute-dropdown[b-05lgbna4wi] {
    position: fixed;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 100001;
}

.dropdown-item-text[b-05lgbna4wi] {
    padding: 0.5rem 1rem;
    color: #6c757d;
}

.dropdown-divider[b-05lgbna4wi] {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

.dropdown-item[b-05lgbna4wi] {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

    .dropdown-item:hover[b-05lgbna4wi] {
        background-color: #f8f9fa;
        color: #16181b;
        text-decoration: none;
    }

/* User dropdown specific styles */
.user-dropdown-container[b-05lgbna4wi] {
    position: relative;
}

.user-menu[b-05lgbna4wi] {
    top: 64px;
    right: 20px;
    min-width: 200px;
}

/* Hero section fix */
:deep(.hero-section)[b-05lgbna4wi], :deep(.overlay)[b-05lgbna4wi], :deep(.hero-content)[b-05lgbna4wi] {
    z-index: 1 !important;
}


/* --- Media Queries --- */

/* Mobile Styles */
@media (max-width: 640.98px) {
    /* Remove padding from main for mobile if base padding is 1rem */
    main[b-05lgbna4wi] {
        padding: 0; /* Reset base padding */
    }
    /* Add padding back to children for mobile */
    .top-row[b-05lgbna4wi] {
        justify-content: space-between;
        padding-left: 1rem; /* Mobile padding */
        padding-right: 1rem;
    }

        .top-row[b-05lgbna4wi]  a,
        .top-row[b-05lgbna4wi]  .btn-link {
            margin-left: 0;
        }

    article.content[b-05lgbna4wi] {
        padding-left: 1rem; /* Mobile padding */
        padding-right: 1rem;
    }
}

/* Desktop Styles (Auto-Hide Sidebar - Simplified) */
@media (min-width: 641px) {
    .page[b-05lgbna4wi] {
        flex-direction: row; /* Sidebar and main content side-by-side */
    }

    .sidebar[b-05lgbna4wi] {
        /* Using 75px based on previous request */
        width: 75px; /* Collapsed width */
        height: 100vh;
        position: sticky; /* Make sidebar sticky on desktop */
        top: 0;
        /* --- CONSISTENT TRANSITION --- */
        transition: width 0.3s ease;
        overflow-x: hidden; /* ADD THIS LINE - Prevents horizontal scrollbar */
        overflow-y: auto; /* ADD THIS LINE - Keeps vertical scroll if needed */
        z-index: 9990;
    }

        .sidebar:hover[b-05lgbna4wi],
        .sidebar:focus-within[b-05lgbna4wi] {
            width: 250px; /* Expanded width */
            overflow-y: auto; /* Allow vertical scroll when expanded */
            overflow-x: hidden; /* Keep horizontal hidden */
        }

    main[b-05lgbna4wi] {
        flex: 1;
        /* Remove padding-left from main */
        padding-top: 0; /* Remove base padding if needed */
        padding-bottom: 0;
        padding-right: 0;
        padding-left: 0; /* Explicitly remove */
        overflow-x: hidden; /* <<-- ADD THIS LINE */ /* ADDED */
        /* Optionally add 'position: relative;' if not already implied */
        position: relative; /* Ensures z-index and potential absolute children work correctly */
    }

        /* Apply dynamic padding to top-row (assuming it's inside main) */
        main > .top-row[b-05lgbna4wi] { /* Use > if direct child, or just 'main .top-row' */
            position: sticky;
            top: 0;
            z-index: 9999 !important;
            /* Base desktop padding */
            padding-left: 75px;
            padding-right: 1.5rem; /* Keep right padding */
            transition: padding-left 0.3s ease;
            background-color: #f7f7f7; /* Re-apply background */
            border-bottom: 1px solid #d6d5d5; /* Re-apply border */
            /* Other top-row styles like height, display, align-items are inherited or set above */
        }

        /* Apply dynamic padding to article content (assuming it's inside main) */
        main > article.content[b-05lgbna4wi] { /* Use > if direct child, or just 'main article.content' */
            /* Base desktop padding */
            padding-left: 75px;
            padding-right: 1.5rem; /* Add consistent right padding */
            padding-top: 1rem;
            padding-bottom: 1rem;
            transition: padding-left 0.3s ease;
        }

    /* Adjust padding on hover/focus using sibling selector relative to main */
    .sidebar:hover + main > .top-row[b-05lgbna4wi],
    .sidebar:focus-within + main > .top-row[b-05lgbna4wi] {
        padding-left: 250px;
    }

    .sidebar:hover + main > article.content[b-05lgbna4wi],
    .sidebar:focus-within + main > article.content[b-05lgbna4wi] {
        padding-left: 250px;
    }

    /* Specific alignment for auth links in desktop top row */
    .top-row.auth[b-05lgbna4wi]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable transitions for layout changes */
    .sidebar[b-05lgbna4wi], main > .top-row[b-05lgbna4wi], main > article.content[b-05lgbna4wi] {
        transition: none;
    }

        /* Disable transitions within NavMenu */
        .nav-text[b-05lgbna4wi], .navbar-brand[b-05lgbna4wi], .sidebar .top-row .container-fluid[b-05lgbna4wi],
        .nav-item[b-05lgbna4wi]  a, .nav-icon-container[b-05lgbna4wi], .bi[b-05lgbna4wi] {
            transition: none !important; /* Ensure no transitions apply */
        }
}
/* _content/CupeyBowlingWebApp/Components/Layout/NavMenu.razor.rz.scp.css */
/* NavMenu.razor.css */

/* Styles specific to the NavMenu component, often within the .sidebar */

/* Base Styles */
.navbar-toggler[b-r6kjlxz0j4] { /* Unchanged */
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
    z-index: 10;
}

    .navbar-toggler:checked[b-r6kjlxz0j4] {
        background-color: rgba(255, 255, 255, 0.5);
    }

.sidebar .top-row[b-r6kjlxz0j4] { /* Unchanged */
    height: 7.5rem;
    background-color: rgba(0,0,0,0.4);
    border-bottom: none;
    position: relative;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden; /* Add overflow hidden */
}

    .sidebar .top-row .container-fluid[b-r6kjlxz0j4] { /* Added consistent transition */
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        padding: 0.5rem 0;
        /* Match main layout timing */
        transition: justify-content 0.3s ease;
    }

.navbar-brand[b-r6kjlxz0j4] { /* Added padding and transform transition */
    font-size: 1.1rem;
    margin: 0;
    padding: 0; /* Base padding is 0 */
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 100%;
    color: #c0ff00;
    /* Animate padding and transform for smooth shift */
    transition: padding 0.3s ease, transform 0.3s ease;
}

    /* Base image style - Represents EXPANDED size based on user code */
    .navbar-brand img[b-r6kjlxz0j4] {
        height: 95px; /* User's current expanded height */
        width: auto;
        max-width: 100%;
        /* Add height transition */
        transition: transform 0.3s ease, height 0.3s ease;
        object-fit: contain;
    }

        .navbar-brand img:hover[b-r6kjlxz0j4] {
            transform: scale(1.05);
        }

.nav-scrollable[b-r6kjlxz0j4] { /* Unchanged */
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 7.5rem);
    position: relative;
    padding-top: 1rem;
}

.nav-item[b-r6kjlxz0j4] { /* Unchanged */
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    white-space: nowrap;
    margin: 0 0.5rem;
}

    /* --- Base Link and Icon Styles with Transitions --- */
    .nav-item[b-r6kjlxz0j4]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: normal;
        padding: 0 0.75rem;
        overflow: hidden;
        text-decoration: none;
        /* Define transitions on base state - Re-add padding transition */
        transition: background-color 0.2s ease, color 0.2s ease, padding 0.3s ease;
    }

.nav-icon-container[b-r6kjlxz0j4] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    margin-right: 12px; /* Default margin */
    flex-shrink: 0;
    /* Re-add margin transition */
    transition: margin-right 0.3s ease;
}

.bi[b-r6kjlxz0j4] {
    width: 1.5rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    color: #c0ff00;
    flex-shrink: 0;
    /* Define transition on base state */
    transition: color 0.2s ease;
}

.nav-text[b-r6kjlxz0j4] {
    line-height: 1;
    opacity: 0;
    white-space: nowrap;
    flex-grow: 1;
    overflow: hidden;
    /* Define transition on base state - match main layout timing */
    transition: opacity 0.3s ease;
}

/* --- Base Link States (Mobile / Fallback) --- */
.nav-item[b-r6kjlxz0j4]  a.active {
    background-color: rgba(192, 255, 0, 0.25);
    color: white;
}

    .nav-item[b-r6kjlxz0j4]  a.active .bi {
        color: white;
    }

.nav-item[b-r6kjlxz0j4]  a:not(.active):hover {
    background-color: rgba(192, 255, 0, 0.1);
    color: #c0ff00;
}

    .nav-item[b-r6kjlxz0j4]  a:not(.active):hover .bi {
        color: #c0ff00;
    }


/* --- Desktop Specific Styles (min-width: 641px) --- */
@media (min-width: 641px) {

    .navbar-toggler[b-r6kjlxz0j4] {
        display: none;
    }

    /* Reveal text on hover/focus */
    .sidebar:hover .nav-text[b-r6kjlxz0j4],
    .sidebar:focus-within .nav-text[b-r6kjlxz0j4] {
        opacity: 1;
    }

    /* --- Logo Centering/Alignment --- */
    /* Center container when collapsed */
    .sidebar:not(:hover):not(:focus-within) .top-row .container-fluid[b-r6kjlxz0j4] {
        justify-content: center;
    }
    /* Ensure brand has NO padding and shift left slightly when collapsed */
    .sidebar:not(:hover):not(:focus-within) .navbar-brand[b-r6kjlxz0j4] {
        padding: 0;
        /* Use transform to shift left */
        transform: translateX(-5px); /* <-- ADJUST THIS VALUE (-3px, -8px etc.) */
        /* margin-left: -5px; */ /* Alternative, might not work as well */
    }
    /* Align left and add padding when expanded (transitions on base elements) */
    .sidebar:hover .top-row .container-fluid[b-r6kjlxz0j4],
    .sidebar:focus-within .top-row .container-fluid[b-r6kjlxz0j4] {
        justify-content: flex-start;
    }

    .sidebar:hover .navbar-brand[b-r6kjlxz0j4],
    .sidebar:focus-within .navbar-brand[b-r6kjlxz0j4] {
        justify-content: flex-start; /* Ensure content within brand aligns left */
        padding-left: 3rem; /* User's current expanded padding */
        transform: translateX(0); /* Reset transform */
    }
    /* --- End Logo Centering/Alignment --- */

    /* --- Logo Size Adjustment --- */
    /* Set smaller height when collapsed */
    .sidebar:not(:hover):not(:focus-within) .navbar-brand img[b-r6kjlxz0j4] {
        /* Assuming 60px was the intended collapsed size from before */
        height: 60px;
    }
    /* Expanded height (95px) is set by the base .navbar-brand img rule */
    /* --- End Logo Size Adjustment --- */


    /* --- Icon Centering Rules --- */
    /* Apply instantly when collapsed */
    .sidebar:not(:hover):not(:focus-within) .nav-item[b-r6kjlxz0j4]  a {
        justify-content: center; /* Center icon horizontally */
        padding-left: 0; /* Remove padding */
        padding-right: 0;
    }

    .sidebar:not(:hover):not(:focus-within) .nav-icon-container[b-r6kjlxz0j4] {
        margin-right: 0; /* Remove margin next to icon */
    }
    /* Revert smoothly on hover/focus (padding/margin transitions applied on base) */
    .sidebar:hover .nav-item[b-r6kjlxz0j4]  a,
    .sidebar:focus-within .nav-item[b-r6kjlxz0j4]  a {
        justify-content: flex-start; /* Align left */
        padding: 0 0.75rem; /* Restore padding */
    }

    .sidebar:hover .nav-icon-container[b-r6kjlxz0j4],
    .sidebar:focus-within .nav-icon-container[b-r6kjlxz0j4] {
        margin-right: 12px; /* Restore margin */
    }
    /* --- End Icon Centering Rules --- */


    /* --- Active Link Highlighting Styles (Desktop) --- */
    /* Expanded Active */
    .sidebar:hover .nav-item[b-r6kjlxz0j4]  a.active,
    .sidebar:focus-within .nav-item[b-r6kjlxz0j4]  a.active {
        background-color: rgba(192, 255, 0, 0.25);
        color: white;
    }

        .sidebar:hover .nav-item[b-r6kjlxz0j4]  a.active .bi,
        .sidebar:focus-within .nav-item[b-r6kjlxz0j4]  a.active .bi {
            color: white;
        }
    /* Collapsed Active */
    .sidebar:not(:hover):not(:focus-within) .nav-item[b-r6kjlxz0j4]  a.active {
        background-color: transparent; /* No background */
    }

        .sidebar:not(:hover):not(:focus-within) .nav-item[b-r6kjlxz0j4]  a.active .bi {
            color: white; /* Highlight icon only */
        }

    /* --- Hover Link Styles (Desktop - NON-ACTIVE) --- */
    .nav-item[b-r6kjlxz0j4]  a:not(.active):hover {
        background-color: rgba(192, 255, 0, 0.1);
        color: #c0ff00;
    }

        .nav-item[b-r6kjlxz0j4]  a:not(.active):hover .bi {
            color: #c0ff00;
        }
}
/* End of @media (min-width: 641px) */


/* Laser removed */

/* Reduced motion handled in main layout CSS */

/* _content/CupeyBowlingWebApp/Components/NotificationsComponent.razor.rz.scp.css */
.notifications-container[b-9pgl3yqwod] {
    position: relative;
}

.notification-bell[b-9pgl3yqwod] {
    position: relative;
    color: #495057;
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 0.25rem;
    cursor: pointer;
}

    .notification-bell:hover[b-9pgl3yqwod] {
        color: #0d6efd;
    }

.notification-badge[b-9pgl3yqwod] {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.notifications-panel[b-9pgl3yqwod] {
    position: absolute;
    top: 42px;
    right: 0; /* Changed from -290px */
    width: 350px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100001;
}

.notification-header[b-9pgl3yqwod] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.notification-list[b-9pgl3yqwod] {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item[b-9pgl3yqwod] {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

    .notification-item:hover[b-9pgl3yqwod] {
        background-color: #f8f9fa;
    }

.notification-content p[b-9pgl3yqwod] {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

.notification-time[b-9pgl3yqwod] {
    color: #adb5bd;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.notification-footer[b-9pgl3yqwod] {
    padding: 0.75rem 1rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

/* Add media query for smaller screens */
@media (max-width: 640px) {
    .notifications-panel[b-9pgl3yqwod] {
        right: -60px; /* Less shift on mobile to keep it visible */
        width: 300px; /* Slightly smaller panel on mobile */
    }
}
