/* Custom Navigation Bar for Studia Omniavis Player */

.player-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f0f2f5; /* Un grigio chiaro, neutro */
    border-bottom: 1px solid #d9dde2;
    font-family: 'Roboto', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.player-nav a {
    text-decoration: none;
    color: #0056b3; /* Un blu classico per i link */
    font-weight: bold;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.player-nav a:hover {
    background-color: #e9ecef;
}

.player-nav .nav-left,
.player-nav .nav-center,
.player-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Stili per il toggle audio/video */
.mode-toggle {
    display: flex;
    background-color: #e9ecef;
    border-radius: 20px;
    padding: 4px;
    gap: 2px;
}

.mode-btn {
    padding: 0.4rem 0.8rem !important;
    border-radius: 16px !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
    color: #495057 !important;
}

.mode-btn:hover {
    background-color: #dee2e6 !important;
    color: #495057 !important;
}

.mode-btn.active {
    background-color: #0056b3 !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mode-btn.active:hover {
    background-color: #004494 !important;
    color: white !important;
}

.player-nav .user-greeting {
    color: #495057; /* Grigio scuro per il testo normale */
    font-size: 0.9rem;
}

.player-nav .logout-btn {
    color: #fff;
    background-color: #dc3545; /* Rosso per il logout */
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: bold;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.player-nav .logout-btn:hover {
    background-color: #c82333; /* Rosso più scuro al hover */
    color: #fff;
}

/* Stile per il modale degli strumenti su mobile */
.tools-modal {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background-color: white;
    transform: translateY(calc(100% + 1rem)); /* Aggiustato per l'animazione */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.15); /* Ombra più diffusa per un look più "fluttuante" */
    border-radius: 1rem; /* Tutti gli angoli arrotondati */
}

.tools-modal.modal-open {
    transform: translateY(0);
}

.tools-modal .modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1rem;
}

.tools-modal .modal-content li {
    padding: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.tools-modal .modal-content li:hover {
    background-color: #f5f5f5;
}

.tools-modal .modal-content li:last-child {
    border-bottom: none;
}

.tools-modal .modal-close-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-top: 1rem;
}

.tools-modal .modal-close-btn:hover {
    background-color: #5a6268;
}