/* iOS Status Bar Styling */
:root {
    --navbar-color: #b678f3;
}

@supports (-webkit-touch-callout: none) {
    /* Only applied when running as PWA */
    @media all and (display-mode: standalone) {
        /* Unified gradient background for both status bar and navbar */
        .navbar-and-status-bar-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: calc(env(safe-area-inset-top) + 70px);
            background: var(--navbar-color);
            z-index: 1025;
            pointer-events: none;  /* Let clicks pass through */
        }
        
        /* Status bar background with exact same gradient */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: env(safe-area-inset-top);
            background: var(--navbar-color);  /* Solid color for status bar */
            z-index: 1026;
            pointer-events: none;  /* Let clicks pass through */
        }

        /* Navbar styling */
        .navbar {
            background: transparent !important;
            position: fixed !important;
            top: env(safe-area-inset-top) !important;
            left: 0 !important;
            right: 0 !important;
            border-radius: 0 !important;  /* Remove border radius at top */
            z-index: 1032 !important;  /* Higher than status bar */
        }

        /* Dropdown menu styling for PWA mode */
        .navbar .nav-item .dropdown-toggle {
            background-color: white !important;
            border-radius: 0.5rem !important;
            padding: 0.5rem 1rem !important;
            margin: 0.25rem !important;
        }

        .navbar .dropdown-menu {
            background-color: white !important;
            border: 1px solid rgba(0, 0, 0, 0.1) !important;
            border-radius: 0.5rem !important;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
            z-index: 1040 !important;
            padding: 0.5rem 0 !important;
        }

        .navbar .dropdown-menu .dropdown-item {
            color: var(--navbar-dark) !important;
            padding: 0.5rem 1rem !important;
        }

        .navbar .dropdown-menu .dropdown-item:hover {
            background-color: rgba(0, 0, 0, 0.05) !important;
        }

        /* Ensure proper spacing */
        body {
            padding-top: calc(env(safe-area-inset-top) + 70px) !important;
        }

        /* Text styling to match navbar */
        .navbar .navbar-brand,
        .navbar .nav-link,
        .navbar .notification-bell {
            color: var(--navbar-dark) !important;
        }

        .navbar .navbar-toggler {
            border-color: var(--navbar-dark) !important;
        }

        .navbar .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%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        }
    }
}/* iOS Status Bar Styling */
:root {
    --navbar-color: #b678f3;
}

@supports (-webkit-touch-callout: none) {
    /* Only applied when running as PWA */
    @media all and (display-mode: standalone) {
        /* Unified gradient background for both status bar and navbar */
        .navbar-and-status-bar-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: calc(env(safe-area-inset-top) + 70px);
            background: var(--navbar-color);
            z-index: 1029;
        }
        
        /* Status bar background with exact same gradient */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: env(safe-area-inset-top);
            background: var(--navbar-color);  /* Solid color for status bar */
            z-index: 1031;
        }

        /* Navbar styling */
        .navbar {
            background: var(--navbar-gradient) !important;
            position: fixed !important;
            top: env(safe-area-inset-top) !important;
            left: 0 !important;
            right: 0 !important;
            border-radius: 0 !important;  /* Remove border radius at top */
        }

        /* Ensure proper spacing */
        body {
            padding-top: calc(env(safe-area-inset-top) + 70px) !important;
        }

        /* Text styling to match navbar */
        .navbar .navbar-brand,
        .navbar .nav-link,
        .navbar .notification-bell {
            color: var(--navbar-dark) !important;
        }

        .navbar .navbar-toggler {
            border-color: var(--navbar-dark) !important;
        }

        .navbar .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%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        }
    }
}