/* Stile per il menu contestuale */
#context-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

#context-menu-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

#context-menu {
    background-color: #282828;
    border-radius: 8px;
    width: 90vw;
    max-width: 450px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    border: 1px solid #444;
}

.context-menu-title {
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    border-bottom: 1px solid #3a3a3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#context-menu-main-actions,
.links-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
}

.links-container {
    flex-grow: 1; /* Occupa lo spazio rimanente */
}

.context-btn {
    width: 100%;
    padding: 12px 15px;
    background-color: transparent;
    border: none;
    color: #eee;
    text-align: left;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
}

.context-btn:focus {
    background-color: #2196F3;
    color: white;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.context-separator {
    height: 1px;
    background-color: #3a3a3a;
    margin: 5px 0;
}

.context-subtitle {
    padding: 10px 20px 5px 20px;
    font-size: 0.8em;
    font-weight: bold;
    color: #aaa;
    text-transform: uppercase;
}

.context-info {
    padding: 15px 20px;
    color: #888;
    font-style: italic;
}
