
        /* Match homepage: no dark overlay, the photo shows through and
           frosted cards provide the contrast. The photo must be declared
           here - styles.deduped.min.css resets body to transparent. */
        body {
            background-image: url('seba.jpg') !important;
            background-attachment: fixed !important;
            background-position: center center !important;
            background-repeat: no-repeat !important;
            background-size: cover !important;
        }

        .background-overlay {
            background: transparent !important;
            backdrop-filter: none !important;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .navbar-nav .btn {
            transition: all 0.3s ease;
        }

        .navbar-nav .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
        }

        /* Form styling */
        .form-label {
            font-weight: 600;
            color: #212529;
            margin-bottom: 0.5rem;
        }

        .form-control,
        .form-select {
            border: 2px solid #dee2e6;
            border-radius: 12px;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-control:focus,
        .form-select:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
            outline: none;
        }

        .form-select option[value="__new__"] {
            background-color: rgba(13, 110, 253, 0.1);
            font-weight: 600;
            color: #0d6efd;
        }

        /* Transparent blur header */
        .card-header.bg-transparent-blur {
            background: rgba(255, 255, 255, 0.2) !important;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            color: white !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.8);
            padding: 1.5rem;
        }

        .card-header.bg-transparent-blur .card-title {
            color: white !important;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.8);
            font-size: 1.5rem;
            font-weight: 700;
        }

        /* Secondary action on the light edit card ("Dodaj dla kogoś innego").
           Solid white, dashed brand-red border ("add" affordance), red icon
           badge. Stays visually below the green primary "Dodaj" button. */
        #editTab .btn-secondary-light {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            min-height: 52px;
            padding: 0.625rem 1.25rem;
            background: #ffffff !important;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border: 2px dashed #d65663 !important;
            border-radius: 16px;
            color: #a3192a !important;
            font-weight: 700;
            font-size: 1.05rem;
            line-height: 1.25;
            text-shadow: none;
            box-shadow: 0 2px 8px rgba(200, 32, 47, 0.1);
            transition: background-color 0.18s ease, border-color 0.18s ease,
                box-shadow 0.18s ease, transform 0.18s ease;
        }

        #editTab .btn-secondary-light .btn-icon-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(224, 60, 74, 0.12);
            color: #c8202f;
            font-size: 0.9rem;
            transition: background-color 0.18s ease, color 0.18s ease;
        }

        #editTab .btn-secondary-light:hover {
            background: #fff5f6 !important;
            border-style: solid !important;
            border-color: #c8202f !important;
            color: #a3192a !important;
            box-shadow: 0 6px 16px rgba(200, 32, 47, 0.18);
            transform: translateY(-1px);
        }

        #editTab .btn-secondary-light:hover .btn-icon-badge {
            background: #c8202f;
            color: #ffffff;
        }

        #editTab .btn-secondary-light:focus {
            box-shadow: 0 2px 8px rgba(200, 32, 47, 0.1);
        }

        #editTab .btn-secondary-light:focus-visible {
            outline: 3px solid #1a56db;
            outline-offset: 3px;
            border-style: solid !important;
            border-color: #c8202f !important;
            box-shadow: 0 2px 8px rgba(200, 32, 47, 0.1);
        }

        #editTab .btn-secondary-light:active {
            background: #fde8ea !important;
            border-style: solid !important;
            border-color: #a3192a !important;
            color: #a3192a !important;
            box-shadow: 0 1px 3px rgba(200, 32, 47, 0.15);
            transform: translateY(0);
        }

        @media (prefers-reduced-motion: reduce) {
            #editTab .btn-secondary-light,
            #editTab .btn-secondary-light .btn-icon-badge {
                transition: none;
            }

            #editTab .btn-secondary-light:hover,
            #editTab .btn-secondary-light:active {
                transform: none;
            }
        }

        /* Card body styling */
        .card-body {
            padding: 2rem;
        }

        /* Alert styling */
        .alert-info {
            background-color: rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(0, 0, 0, 0.08);
            color: #4a5568;
            border-radius: 12px;
            font-size: 0.875rem;
        }

        /* Top menu container - unified black-fade top bar (see app-theme.css) */
        .top-menu-container {
            padding: 2rem 0;
            margin-bottom: 2rem;
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
            position: relative;
            overflow: hidden;
        }

        .top-menu-container .container {
            overflow: hidden;
        }

        .top-menu-container h4 {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Menu home link */

        /* Old sidebar elements - Hidden (replaced by tab bar) */
        .hamburger-menu,
        .sidebar-menu,
        .sidebar-overlay,
        .top-menu-container {
            display: none !important;
        }

        /* Add top margin to content */
        body {
            padding-top: 40px !important;
        }

        .container {
            margin-top: 20px !important;
        }

        .sidebar-header {
            padding: 25px 20px;
            background: #F44336;
            color: white;
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
        }

        .sidebar-logo {
            width: 40px;
            height: 40px;
            border-radius: 8px;
        }

        .sidebar-header h4,
        .sidebar-header h5 {
            color: white;
            margin: 0;
            font-weight: 600;
            flex: 1;
        }

        .sidebar-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 8px;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            color: white;
        }

        .sidebar-close:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .sidebar-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px 0;
        }

        .sidebar-menu-items {
            padding: 0;
        }

        .sidebar-menu-item {
            padding: 15px 25px;
            color: #2d3748;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.3s ease;
            border: none;
            border-left: 4px solid transparent;
            background: none;
            width: 100%;
            text-align: left;
            font-size: 1rem;
        }

        .sidebar-menu-item:hover {
            background: #f7fafc;
            color: #667eea;
            border-left-color: #667eea;
        }

        .sidebar-menu-item.active {
            background: #edf2f7;
            color: #667eea;
            border-left-color: #667eea;
            font-weight: 600;
        }

        .sidebar-menu-item i {
            font-size: 20px;
            width: 25px;
            text-align: center;
        }

        .sidebar-divider {
            height: 1px;
            background: #e2e8f0;
            margin: 15px 25px;
        }

        .sidebar-footer {
            padding: 20px 25px;
            border-top: 1px solid #e2e8f0;
            text-align: center;
        }

        /* Overlay for sidebar */
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1030;
            display: none;
        }

        .sidebar-overlay.show {
            display: block;
        }

        /* Red header for form */
        .card-header.bg-red {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
            color: white !important;
            border-bottom: 3px solid #bd2130;
            padding: 1.5rem;
            text-align: center;
        }

        .card-header.bg-red .card-title {
            color: white !important;
            font-size: 1.1rem;
            font-weight: 700;
            margin: 0;
            text-align: center;
            display: block;
            width: 100%;
        }

        .card-header.bg-red .card-title i {
            color: white !important;
        }

        /* Green button */
        .btn-green {
            background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
            border: 2px solid #28a745 !important;
            color: white !important;
            font-weight: 700;
            font-size: 1.1rem;
            padding: 0.875rem 1.5rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        }

        .btn-green:hover {
            background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
            border-color: #1e7e34 !important;
            color: white !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
        }

        /* My presents list: high-contrast items on the frosted card */
        #myPresentsList .my-present-item {
            /* Near-opaque so the photo/blur behind the panel can't tint the text */
            background: rgba(255, 255, 255, 0.97) !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border: 1px solid rgba(0, 0, 0, 0.1) !important;
            border-left: 4px solid #FFC107 !important; /* yellow accent */
            border-radius: 14px !important;
            margin-bottom: 10px;
            padding: 12px 12px 12px 14px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        #myPresentsList .my-present-item:hover {
            background: #ffffff !important;
        }
        #myPresentsList .my-present-body { min-width: 0; }
        #myPresentsList .my-present-title,
        #myPresentsList .my-present-comments {
            word-break: normal;
            overflow-wrap: break-word;
            hyphens: manual;
        }
        #myPresentsList .my-present-title {
            color: #1a1a1a;
            font-size: 16px;
            font-weight: 600;
            line-height: 1.4;
        }
        #myPresentsList .my-present-comments {
            color: #333333;
            font-size: 15px;
            line-height: 1.45;
        }
        #myPresentsList .my-present-date { color: #555555; font-size: 13px; }
        #myPresentsList .my-present-link { color: #0D47A1 !important; font-weight: 500; }
        #myPresentsList .my-present-actions { flex-shrink: 0; }
        #myPresentsList .my-present-actions .btn { min-width: 40px; min-height: 40px; }
        /* Keep the last item and the button clear of the floating tab bar + FAB */
        @media (max-width: 991.98px) {
            body.has-tab-bar {
                padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important;
            }
        }

        /* Hide default navbar */
        .navbar {
            display: none;
        }
    