/* ===== BUY ME A COFFEE WIDGET INTEGRATION ===== */
/* Widget is loaded in App.razor */

/* 1. RESTORE FLOATING WIDGET VISIBILITY */
/* The widget (#bmc-wbtn) is injected by the script. We ensure it's visible by default. */
#bmc-wbtn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important; /* Ensure it's on top */
}

/* 2. HIDE WIDGET WHEN SIDEBAR IS OPEN */
/* When sidebar is open, body has class 'sidebar-is-open'. We hide the widget to avoid clutter. */
body.sidebar-is-open #bmc-wbtn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 3. SIDEBAR BUTTON STYLES */
/* New button inside NavMenu */
.lotai-sidebar-coffee-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 90%;
    margin: 0 auto 1rem auto;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #FFDD00 0%, #FDB827 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 221, 0, 0.3);
    text-decoration: none;
    overflow: hidden;
    position: relative;
}

.lotai-sidebar-coffee-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.lotai-sidebar-coffee-btn:hover::before {
    left: 100%;
}

.lotai-sidebar-coffee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 221, 0, 0.5);
    background: linear-gradient(135deg, #FFE44D 0%, #FDCE49 100%);
}

.lotai-sidebar-coffee-btn .coffee-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    animation: coffee-sidebar-wiggle 2s ease-in-out infinite;
}

@keyframes coffee-sidebar-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

/* Ensure padding in NavMenu footer area */
.lotai-sidebar-footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}








