/* Quick Actions FAB Styles */

.quick-actions-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.quick-actions-fab.hidden {
    transform: translateY(150px);
    opacity: 0;
    pointer-events: none;
}

/* Main FAB Button */
.fab-main-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.fab-main-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.5);
}

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

.fab-main-button.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

.fab-icon {
    color: white;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.fab-main-button.active .fab-icon {
    transform: rotate(135deg);
}

/* FAB Actions Menu */
.fab-actions-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fab-actions-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Individual FAB Action */
.fab-action {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: none;
    border-radius: 30px;
    padding: 12px 20px 12px 15px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0);
    opacity: 0;
    white-space: nowrap;
}

.fab-action.visible {
    transform: scale(1);
    opacity: 1;
}

.fab-action:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

body.dark-mode .fab-action {
    background: #2d2d2d;
    color: #e0e0e0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .fab-action:hover {
    background: #353535;
}

.fab-action-icon {
    font-size: 24px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.fab-action:nth-child(1) .fab-action-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.fab-action:nth-child(2) .fab-action-icon {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.fab-action:nth-child(3) .fab-action-icon {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.fab-action:nth-child(4) .fab-action-icon {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.fab-action:nth-child(5) .fab-action-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.fab-action:nth-child(6) .fab-action-icon {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.fab-action-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

body.dark-mode .fab-action-label {
    color: #e0e0e0;
}

/* Animations */
.fab-action:nth-child(1).visible {
    animation: fabActionSlide 0.3s ease-out 0.05s forwards;
}

.fab-action:nth-child(2).visible {
    animation: fabActionSlide 0.3s ease-out 0.1s forwards;
}

.fab-action:nth-child(3).visible {
    animation: fabActionSlide 0.3s ease-out 0.15s forwards;
}

.fab-action:nth-child(4).visible {
    animation: fabActionSlide 0.3s ease-out 0.2s forwards;
}

.fab-action:nth-child(5).visible {
    animation: fabActionSlide 0.3s ease-out 0.25s forwards;
}

.fab-action:nth-child(6).visible {
    animation: fabActionSlide 0.3s ease-out 0.3s forwards;
}

@keyframes fabActionSlide {
    from {
        transform: scale(0) translateX(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-actions-fab {
        bottom: 20px;
        left: 20px;
    }

    .fab-main-button {
        width: 55px;
        height: 55px;
    }

    .fab-icon {
        font-size: 28px;
    }

    .fab-actions-menu {
        bottom: 65px;
    }

    .fab-action {
        padding: 10px 16px 10px 12px;
    }

    .fab-action-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .fab-action-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .quick-actions-fab {
        bottom: 15px;
        left: 15px;
    }

    .fab-main-button {
        width: 50px;
        height: 50px;
    }

    .fab-icon {
        font-size: 24px;
    }

    /* Hide labels on very small screens */
    .fab-action-label {
        display: none;
    }

    .fab-action {
        padding: 10px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }

    .fab-action-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .fab-actions-menu {
        gap: 12px;
    }
}

/* Print - Hide FAB */
@media print {
    .quick-actions-fab {
        display: none !important;
    }
}

/* Alternative: Right-side FAB */
.quick-actions-fab.fab-right {
    left: auto;
    right: 30px;
}

@media (max-width: 768px) {
    .quick-actions-fab.fab-right {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .quick-actions-fab.fab-right {
        right: 15px;
    }
}

/* Tooltip for actions (optional) */
.fab-action::before {
    content: attr(title);
    position: absolute;
    right: calc(100% + 10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.fab-action:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .fab-action::before {
        display: none;
    }
}

