﻿.modes-section {
    margin-bottom: 20px;
    padding: 5px;
    background: #1c232e;
    border-radius: 6px;
    border: 1px solid #404040;
}

.modes-title {
    color: #00ff41;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.modes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.mode-card {
    background: #2a2c30;
    border: 2px solid #404040;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

    .mode-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        border-color: #666;
    }

    .mode-card.selected {
        border-color: #0066cc;
        background: rgba(0, 102, 204, 0.1);
        box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
    }

        .mode-card.selected[data-mode="A"] {
            border-color: #0066cc;
            background: rgba(0, 102, 204, 0.1);
        }

        .mode-card.selected[data-mode="B"] {
            border-color: #28a745;
            background: rgba(40, 167, 69, 0.1);
        }

        .mode-card.selected[data-mode="C"] {
            border-color: #ffc107;
            background: rgba(255, 193, 7, 0.1);
        }

.mode-icon {
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.mode-desc {
    color: #ccc;
    font-size: 0.6rem;
    line-height: 1.3;
}

    .mode-desc strong {
        color: #fff;
    }



.empty_scenari {
}

.scenari-toggle {
    background: linear-gradient(135deg, #b0bdf2 0%, #8a9ad8 100%);
    width: 60px;
    height: 60px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(176, 189, 242, 0.4);
    color: #1b2335;
    position: relative;
    overflow: hidden;
}

.scenari-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.scenari-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* === STILI COMPONENTE SCENARI === */
.scenari-btn {
    background: linear-gradient(135deg, #b0bdf2 0%, #8a9ad8 100%);
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(176, 189, 242, 0.3);
    color: #1b2335;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: scenari-pulse 3s ease-in-out infinite;
    margin: 4px;
}

@keyframes scenari-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(176, 189, 242, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 20px rgba(176, 189, 242, 0.5);
        transform: scale(1.02);
    }
}

.scenari-btn:hover, .scenari-btn.active {
    animation: none;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(176, 189, 242, 0.6);
    background: linear-gradient(135deg, #a3b0e8 0%, #7a8bd4 100%);
}

.scenari-panel {
    position: absolute;
    background: #1b2335;
    border: 2px solid #b0bdf2;
    border-radius: 16px;
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

    .scenari-panel.show {
        opacity: 1;
        visibility: visible;
    }

    .scenari-panel .header {
        background: #262e3f;
        padding: 16px;
        border-bottom: 1px solid rgba(176, 189, 242, 0.3);
        position: relative;
        border-top-left-radius: 13px;
        border-top-right-radius: 13px;
    }

        .scenari-panel .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, #b0bdf2, transparent);
        }

    .scenari-panel .title {
        color: #b0bdf2;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 4px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .scenari-panel .subtitle {
        color: #b0bdf2;
        font-size: 11px;
        margin: 0;
        transition: opacity 0.3s ease;
    }

    .scenari-panel .close {
        position: absolute;
        top: 12px;
        right: 12px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        font-size: 18px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

        .scenari-panel .close:hover {
            background: rgba(255, 255, 255, 0.1);
        }

    .scenari-panel .options {
        padding: 12px;
    }

    .scenari-panel .option {
        background: rgba(176, 189, 242, 0.08);
        border: 1px solid rgba(176, 189, 242, 0.2);
        border-radius: 10px;
        padding: 14px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

        .scenari-panel .option:hover {
            background: rgba(176, 189, 242, 0.15);
            border-color: rgba(176, 189, 242, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        .scenari-panel .option:last-child {
            margin-bottom: 0;
        }

    .scenari-panel .option-icon {
        font-size: 18px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .scenari-panel .option-title {
        color: white;
        font-size: 13px;
        font-weight: 600;
        margin: 0 0 4px 0;
        line-height: 1.3;
    }

    .scenari-panel .option-desc {
        color: white;
        font-size: 11px;
        line-height: 1.4;
        margin: 0;
        opacity: 0.8;
    }

    .scenari-panel .option-title strong {
        background: linear-gradient(135deg, #b0bdf2, rgba(176, 189, 242, 0.8));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
    }

.scenari-arrow {
    position: absolute;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

    .scenari-arrow.up {
        bottom: -8px;
        border-top: 8px solid #b0bdf2;
    }

    .scenari-arrow.down {
        top: -8px;
        border-bottom: 8px solid #b0bdf2;
    }

@media (max-width: 768px) {
    .scenari-panel {
        width: 280px;
        max-width: calc(100vw - 20px);
    }
}

