/* Quick Menu Styles */
/* This file provides quick access menu styling for the application */

/* Quick Menu Container */
.quick-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.quick-menu-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.quick-menu-toggle i {
    color: #fff;
    font-size: 1.5rem;
}

/* Quick Menu Items */
.quick-menu-items {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.quick-menu-items.active {
    display: flex;
}

.quick-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.3s ease forwards;
}

.quick-menu-item:nth-child(1) { animation-delay: 0.1s; }
.quick-menu-item:nth-child(2) { animation-delay: 0.2s; }
.quick-menu-item:nth-child(3) { animation-delay: 0.3s; }
.quick-menu-item:nth-child(4) { animation-delay: 0.4s; }
.quick-menu-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-menu-label {
    background: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    color: #333;
    font-weight: 500;
}

.quick-menu-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.quick-menu-btn i {
    font-size: 1.2rem;
}

/* Color variants */
.quick-menu-btn.primary { background: #4e73df; color: #fff; }
.quick-menu-btn.success { background: #1cc88a; color: #fff; }
.quick-menu-btn.info { background: #36b9cc; color: #fff; }
.quick-menu-btn.warning { background: #f6c23e; color: #fff; }
.quick-menu-btn.danger { background: #e74a3b; color: #fff; }

/* Compact Quick Menu Bar (Alternative Style) */
.quick-menu-bar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px 5px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-menu-bar-item {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.quick-menu-bar-item:hover {
    transform: translateX(-5px);
}

.quick-menu-bar-item i {
    font-size: 1.2rem;
}

/* Tooltip for bar items */
.quick-menu-bar-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 55px;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quick-menu-bar-item:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .quick-menu {
        bottom: 15px;
        right: 15px;
    }
    
    .quick-menu-toggle {
        width: 50px;
        height: 50px;
    }
    
    .quick-menu-toggle i {
        font-size: 1.3rem;
    }
    
    .quick-menu-btn {
        width: 45px;
        height: 45px;
    }
    
    .quick-menu-label {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .quick-menu-bar {
        display: none; /* Hide bar on mobile, use floating menu instead */
    }
}

/* Animation for toggle button */
.quick-menu-toggle.active i {
    transform: rotate(45deg);
}

/* Backdrop overlay when menu is open */
.quick-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    display: none;
}

.quick-menu-backdrop.active {
    display: block;
}
