﻿/* Stili per Typeahead con Tags */
.typeahead-tags-container {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem;
    min-height: 42px;
    background-color: #fff;
}

.typeahead-tags-container:focus-within {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.tags-list:empty {
    margin-top: 0;
    display: none;
}

.typeahead-input-wrapper {
    flex: 1;
}

.typeahead-input-wrapper .form-control {
    border: none;
    padding: 0;
    box-shadow: none;
}

.typeahead-input-wrapper .form-control:focus {
    outline: none;
    box-shadow: none;
}

/* Stili per i badge/tag */
.tags-list .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.65em;
    font-size: 0.875rem;
}

.tags-list .badge .btn-close {
    margin-left: 0.5rem;
    padding: 0;
    font-size: 0.6rem;
    cursor: pointer;
}

.tags-list .badge .tag-remove-btn {
    opacity: 0.8;
}

.tags-list .badge .tag-remove-btn:hover {
    opacity: 1;
}

/* Stili per il dropdown typeahead */
.tt-menu {
    width: 100%;
    margin-top: 2px;
    padding: 8px 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.tt-suggestion {
    padding: 8px 12px;
    cursor: pointer;
}

.tt-suggestion:hover,
.tt-suggestion.tt-cursor {
    background-color: #f8f9fa;
}

.tt-suggestion.tt-cursor {
    background-color: #e9ecef;
}
 

/********************************** Stili per pulsante evidenziato in buttongroup ******************************/
/* Stile per il pulsante evidenziato */
.btn-group .btn.highlighted {
    position: relative;
    z-index: 1;
}

/* Freccia sopra */
.btn-group .btn.highlighted::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 15px solid #333;
    animation: bounce-down 1s ease-in-out infinite;
}

/* Freccia sotto */
.btn-group .btn.highlighted::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 15px solid #333;
    animation: bounce-up 1s ease-in-out infinite;
}

/* Animazione freccia superiore */
@keyframes bounce-down {
    0%, 100% {
        top: -20px;
    }
    50% {
        top: -25px;
    }
}

/* Animazione freccia inferiore */
@keyframes bounce-up {
    0%, 100% {
        bottom: -20px;
    }
    50% {
        bottom: -25px;
    }
}

/* Opzionale: aggiungi padding al contenitore per evitare che le frecce vengano tagliate */
.btn-group {
    margin: 30px 0;
}

/* Frecce colorate in base al tipo di pulsante */
.btn-info.highlighted::before,
.btn-info.highlighted::after {
    border-top-color: #0dcaf0;
    border-bottom-color: #0dcaf0;
}

.btn-warning.highlighted::before,
.btn-warning.highlighted::after {
    border-top-color: #ffc107;
    border-bottom-color: #ffc107;
}

.btn-success.highlighted::before,
.btn-success.highlighted::after {
    border-top-color: #198754;
    border-bottom-color: #198754;
}

.btn-danger.highlighted::before,
.btn-danger.highlighted::after {
    border-top-color: #dc3545;
    border-bottom-color: #dc3545;
}

.alert.alert-light{
    color: var(--phoenix-body-color);
}

.navbar-vertical .navbar-vertical-content .navbar-nav .nav-link.active {
    font-weight: bold;
    color: #ef7d00 !important;    
}


/******************************************************************************/