/* Menu du dashboard administration */
.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.admin-menu-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #1e1e1e;
    border: 2px solid #333;
    border-radius: 1.5rem;
    text-decoration: none;
    color: white;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-menu-item:hover {
    transform: translateY(-5px);
    border-color: #2196f3;
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.15);
}

.menu-icon {
    margin-bottom: 1rem;
}

.menu-icon svg {
    width: 64px;
    height: 64px;
    color: #fff;
    stroke: #fff;
    transition: all 0.3s ease;
}

.admin-menu-item:hover .menu-icon svg {
    color: #2196f3;
    stroke: #2196f3;
    transform: scale(1.1);
}

.menu-content h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

.menu-content p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -100%;
    padding: 1rem;
    background: rgba(33, 150, 243, 0.95);
    color: white;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.admin-menu-item:hover .menu-content p {
    bottom: 0;
}

/* Badge de mise à jour disponible */
.admin-menu-item.update-available {
    position: relative;
    overflow: visible;
}

.admin-menu-item.update-available::after {
    content: "";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    background-color: #ff8c00;
    border-radius: 50%;
    border: 2px solid #1e1e1e;
    animation: pulse 2s infinite;
}

.admin-menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.admin-menu-item.disabled .menu-icon svg {
    stroke: #666;
}

.admin-menu-item.disabled:hover {
    transform: none;
    border-color: #333;
    box-shadow: none;
}

.admin-menu-item .update-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.admin-menu-item .update-status.no-update {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
}

.admin-menu-item .update-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-menu-item .version-label {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}

@media (max-width: 768px) {
    .admin-menu {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}
