/* Floating Buttons CSS */

/* Admin Button */
.footer-admin .admin-link {
    background: none;
    border: none;
    box-shadow: none;
    color: #1e3f7300; /* Default color when not hovered */
    font-size: 1.5rem;
    padding: 0;
    transition: all var(--transition-fast);
}

.footer-admin .admin-link:hover {
    transform: scale(1.1);
    color: var(--primary-color); /* Color when hovered */
    background: none;
    box-shadow: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed !important;
    z-index: 999999 !important;
    bottom: 180px !important; /* Vị trí cách đáy màn hình */
    left: 30px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 0 !important;
    background-color: #2c5aa0 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    backface-visibility: visible !important;
    will-change: auto !important;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #1e3f73;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    font-size: 20px;
}

/* Floating Action Button */
.fab-main {
    position: fixed;
    z-index: 999999;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 0;
    background-color: #ff6b35;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    transition: all 0.3s ease;
}

.fab-main:hover {
    background-color: #e55a2b;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fab-main i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

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

/* FAB Menu */
.fab-menu {
    position: fixed;
    z-index: 999998;
    bottom: 100px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 0;
    background-color: #2c5aa0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fab-item:hover {
    background-color: #1e3f73;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fab-item i {
    font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
    
    .fab-main {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .fab-menu {
        bottom: 80px;
        right: 20px;
        gap: 10px;
    }
    
    .fab-item {
        width: 40px;
        height: 40px;
    }
    
    .fab-item i {
        font-size: 16px;
    }
}