/* ===== MOBILE FLOATING ACTION BUTTON (FAB) ===== */
.mobile-fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: none;
}

@media (max-width: 768px) {
    .mobile-fab-container {
        display: block;
    }
}

.mobile-fab {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(56, 186, 245, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(56, 186, 245, 0.5) !important;
}

.mobile-fab:active {
    transform: scale(0.95);
}

/* ===== SWIPE GESTURE STYLES ===== */
.swipeable-card {
    position: relative;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.swipeable-card.swiping-right {
    background: linear-gradient(90deg, rgba(56, 186, 245, 0.1) 0%, transparent 100%);
}

.swipeable-card.swiping-left {
    background: linear-gradient(270deg, rgba(255, 107, 107, 0.1) 0%, transparent 100%);
}

.swipe-action-preview {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    font-weight: 600;
    color: white;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1;
}

.swipe-action-preview.right {
    left: 0;
    background: linear-gradient(90deg, rgba(56, 186, 245, 0.9), rgba(56, 186, 245, 0.7));
    border-radius: 12px 0 0 12px;
}

.swipe-action-preview.left {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 107, 107, 0.9), rgba(255, 107, 107, 0.7));
    border-radius: 0 12px 12px 0;
}

.swipeable-card.swiping-right .swipe-action-preview.right,
.swipeable-card.swiping-left .swipe-action-preview.left {
    opacity: 1;
}

/* Pull to refresh styles */
.pull-to-refresh-ready::before {
    content: 'Release to refresh';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ss-color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.refreshing::before {
    content: 'Refreshing...';
}

/* Swipeable card wrapper */
.swipeable-card-wrapper {
    position: relative;
    touch-action: pan-y;
    overflow: hidden;
}

.swipeable-card-content {
    position: relative;
    background: var(--mud-palette-surface);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Mobile inventory card swipe enhancements */
@media (max-width: 768px) {
    .mobile-card.swipeable {
        touch-action: pan-y;
        position: relative;
        overflow: visible;
    }
    
    .swipeable-card-wrapper {
        margin-bottom: 12px;
    }

    .mobile-card .swipe-action-indicator {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: white;
        opacity: 0;
        transition: opacity 0.2s;
        pointer-events: none;
        z-index: 10;
    }

    .mobile-card.swiping-right .swipe-action-indicator.right {
        left: 10px;
        background: var(--ss-color-primary);
        opacity: 0.9;
    }

    .mobile-card.swiping-left .swipe-action-indicator.left {
        right: 10px;
        background: var(--ss-color-coral);
        opacity: 0.9;
    }
}

/* Mobile Dashboard Actions */
.mobile-dashboard-actions {
    border-radius: 16px;
}

.mobile-dashboard-actions .action-card-button {
    min-height: 56px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    margin-bottom: 8px;
    text-transform: none !important;
}

.mobile-dashboard-actions .action-card-button:last-child {
    margin-bottom: 0;
}

/* Improved touch targets globally for mobile */
@media (max-width: 768px) {
    /* Ensure all buttons meet minimum touch target size */
    .mud-button {
        min-height: 44px !important;
    }
    
    .mud-icon-button {
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* Larger chips for better touch */
    .mud-chip {
        min-height: 32px !important;
        padding: 6px 12px !important;
    }
    
    /* Better spacing for mobile cards */
    .mobile-card {
        margin-bottom: 16px;
        padding: 0;
    }
    
    .mobile-card-header {
        padding: 16px !important;
    }
}

