/* ======================================================
   Sarekam CSS — profile-dropdown.css
   Extracted from index.html | Phase 1 Refactor
   DO NOT add styles from other sections to this file.
   ====================================================== */

        .profile-dropdown-wrapper { position: relative !important; }
        .profile-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 260px;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
            z-index: 9999;
            padding: 8px 0;
            
            /* Swiggy-like transition */
            transform-origin: top right;
            animation: swiggyDropdown 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
        }
        @keyframes swiggyDropdown { 
            from { opacity: 0; transform: scale(0.9) translateY(-10px); } 
            to   { opacity: 1; transform: scale(1) translateY(0); } 
        }

        /* Profile dropdown back button (hidden on desktop) */
        .profile-dd-back {
            display: none;
            align-items: center;
            gap: 10px;
            padding: 16px 18px 12px;
            font-size: 1rem;
            font-weight: 700;
            color: #1a1a1a;
            cursor: pointer;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
        }
        .profile-dd-back i { font-size: 1.1rem; color: #333; }

        /* Backdrop overlay for profile menu */
        .profile-dd-backdrop {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: transparent;
            z-index: 9998;
        }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Mobile: Full-screen profile panel Ã¢â€â‚¬Ã¢â€â‚¬ */
        @media (max-width: 800px) {
            .profile-dropdown {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100% !important;
                height: 100vh !important;
                max-height: 100vh !important;
                border-radius: 0;
                box-shadow: none;
                z-index: 9999;
                padding: 0;
                overflow-y: auto;
                animation: profileSlideUp 0.25s ease-out;
            }
            @keyframes profileSlideUp {
                from { transform: translateY(100%); opacity: 0; }
                to   { transform: translateY(0);    opacity: 1; }
            }
            .profile-dd-back { display: flex; }
            .profile-dd-header { padding: 20px 18px; }
            .profile-dd-item { padding: 15px 18px; font-size: 0.95rem; }
            .profile-dd-item i { font-size: 1rem; }
        }

        .profile-dd-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 18px;
        }
        .profile-dd-name { font-weight: 700; font-size: 0.95rem; color: #1a1a1a; }
        .profile-dd-email { font-size: 0.78rem; color: #888; margin-top: 2px; }
        .profile-dd-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
        .profile-dd-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 10px;
            margin: 2px 8px;
            border-radius: 8px;
            font-size: 0.88rem;
            color: #444;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }
        .profile-dd-item:hover {
            background: #f5f5f5;
            color: #1a1a1a;
            transform: translateX(4px);
        }
        .profile-dd-item:hover i {
            color: #1a1a1a;
        }
        .profile-dd-item i { width: 18px; text-align: center; color: #666; font-size: 0.9rem; transition: color 0.2s ease; }
        .profile-dd-logout { color: #e53935; }
        .profile-dd-logout i { color: #e53935; }
        .profile-dd-logout:hover {
            background: #fef2f2;
            color: #d32f2f;
        }
        .profile-dd-logout:hover i {
            color: #d32f2f;
        }

