/* ==========================================================================
   Admin Panel Styles
   ========================================================================== */

/* Admin Panel Visual Polish */
.selected-item {
    animation: selectPulse 0.3s ease;
}

@keyframes selectPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.menu-item-card {
    transition: all 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.menu-item-card .card {
    transition: all 0.3s ease;
}

#bulkActionBar {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Progress indicator for batch operations */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.progress-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

/* Hover timestamp tooltip */
.menu-item-card[data-updated]:hover::after {
    content: 'Uppdaterad: ' attr(data-updated);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

/* Floating Admin Button - positioned above dark mode toggle */
.floating-admin-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: var(--accent-color);
    color: #fff !important;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.floating-admin-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.floating-admin-btn:hover {
    background-color: var(--primary-color);
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #fff !important;
}