/* Stile del message-box */
.message-box {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 500px;
    background-color: #007bff;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-radius: 12px;
    z-index: 1000;
    opacity: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.message-box.visible {
    top: 20px;
    opacity: 1;
}

.message-box.hidden {
    top: -100px;
    opacity: 0;
}

/* Selected button */
.selected {
    background-color: lightblue !important;
    font-weight: bold;
}

/* Stile del popup */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 2000;
    opacity: 0; /* Inizia nascosto */
    visibility: hidden; /* Non è cliccabile */
    transition: opacity 0.5s ease, visibility 0.5s;
}

.popup.fade-in {
    opacity: 1;
    visibility: visible; /* Rende il popup visibile */
}

.popup.fade-out {
    opacity: 0;
    visibility: hidden; /* Nasconde il popup */
}

.popup-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: space-around;
}

.btn-save {
    background-color: #28a745;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-save:hover {
    background-color: #218838;
}

.btn-cancel {
    background-color: #dc3545;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-cancel:hover {
    background-color: #c82333;
}

/* Supporto per dropdown annidati di modelli */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -1px;
    z-index: 1050;
    min-width: 200px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a::after {
    content: "▶";
    float: right;
}
/* dettatura button */
#dictation-btn.active {
    background-color: #dc3545;
    color: white;
}
#text-box.recording {
    border: 2px solid #dc3545 !important; /* Rosso */
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.6); /* Leggera ombra */
}
