/* =============================================
   FAB (Floating Action Button) Menu
   For exercises tab actions
   ============================================= */

/* Container positions FAB in bottom-right corner */
.exercises-fab-container {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none; /* Don't block clicks in empty space */
}

/* Enable clicks on buttons */
.fab-button, .fab-menu-item {
    pointer-events: auto;
}

/* Main FAB button - always at bottom */
.fab-button {
    order: 2; /* Put button at bottom */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.fab-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

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

.fab-button i {
    transition: transform 0.3s ease;
}

.exercises-fab-container.open .fab-button i {
    transform: rotate(45deg);
}

/* Menu items container - opens upward */
.fab-menu {
    order: 1; /* Menu above button */
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.exercises-fab-container.open .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual menu items */
/* Individual menu items */
.fab-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 22px;
    background: var(--primary); /* Blue background for numbers */
    color: white; /* White text */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    transition: all 0.15s ease;
}

.fab-menu-item:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.fab-menu-item i {
    font-size: 0.85rem;
    color: white; /* White icons */
}

/* Small variant for icon-only buttons (copy/paste) - keep gray */
.fab-menu-item--small {
    width: 44px;
    padding: 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.fab-menu-item--small:hover {
    background: var(--bg-tertiary);
}

.fab-menu-item--small i {
    color: var(--primary);
}

/* Small variant for icon-only buttons */
/* Handled in main rule above now */

/* FAB is positioned fixed inside plan-modal context */
.plan-modal .exercises-fab-container {
    position: fixed;
    z-index: 200;
}

/* Header subtitle for exercise count */
.plan-modal-title-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.plan-modal-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 2px;
}
