/* backend/static/css/modules/fab.css */

/* --- Floating Action Button (FAB) --- */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex; /* Visible by default on Desktop now */
    flex-direction: column;
    gap: 1rem;
}

.fab-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); 
    color: white;
    width: 60px; /* Slightly larger */
    height: 60px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 10px 25px rgba(var(--color-primary-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
    text-decoration: none;
    position: relative; /* Context for pseudo */
    overflow: hidden; /* Shine effect */
}

/* Subtle inner shine */
.fab-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        rgba(255,255,255,0) 40%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 60%
    );
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.3s;
}

.fab-btn:hover::after {
    opacity: 1;
}

.fab-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5px; /* Thicker Icon */
}

.fab-btn:hover {
    transform: scale(1.1) rotate(90deg); /* Playful rotation */
    box-shadow: 0 15px 35px rgba(var(--color-primary-rgb), 0.5);
}

.fab-btn:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .fab-container {
        /* Raised to clear Tab Bar */
        bottom: calc(5.5rem + env(safe-area-inset-bottom)); 
        right: 1.5rem;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}
