/* Floating Action Button (FAB) Styles */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Main FAB Button */
.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    text-decoration: none;
}

.fab-main:hover {
    transform: scale(1.1);
}

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

.fab-main svg {
    width: 24px;
    height: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.fab-main.active svg {
    transform: rotate(45deg);
}

/* Sub FAB Buttons */
.fab-action {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: scale(0) translateY(20px);
    pointer-events: none;
    text-decoration: none;
    position: relative;
}

.fab-action:hover {
    transform: scale(1.1) translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.fab-action:active {
    transform: scale(0.95) translateY(0);
}

.fab-action svg {
    width: 22px;
    height: 22px;
    color: #000000;
    transition: color 0.2s ease;
}

.fab-action:hover svg {
    color: var(--primary-color);
}

/* Show/Hide Animation */
.fab-container.active .fab-action {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.fab-container.active .fab-action:nth-child(2) {
    transition-delay: 0.05s;
}

.fab-container.active .fab-action:nth-child(3) {
    transition-delay: 0.1s;
}

/* Tooltip for FAB Actions */
.fab-action::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: var(--font-13);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-weight: var(--font-weight-medium);
}

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

/* Ripple Effect */
.fab-main::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.fab-main:active::after {
    transform: scale(1);
    opacity: 1;
    transition: 0s;
}

/* Backdrop overlay when FAB is active */
.fab-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fab-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fab-container {
        bottom: 60px;
        right: 15px;
    }

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

    .fab-action {
        width: 44px;
        height: 44px;
    }

    .fab-action::before {
        right: 56px;
        font-size: var(--font-12);
        padding: 5px 10px;
    }


    /* Hide profile image and dropdown on mobile */
    .profile-section {
        display: none;
    }
}