/*
 * Componente Global: Dual Listbox
 * Centraliza a estilização para todas as telas que utilizam seleção dupla
 */

.dual-listbox-container {
    padding: 1rem 0;
    background: transparent;
}

.listbox-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.listbox-section:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.listbox-header {
    padding: 0.75rem 1rem;
    background: #1e293b;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listbox-header-success {
    background: #059669;
}

.listbox-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.listbox-control {
    width: 100%;
    height: 280px !important;
    border: none;
    padding: 0.5rem;
    background: transparent;
    font-family: inherit;
    font-size: 0.875rem;
    color: #334155;
    outline: none;
}

.listbox-control option {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.2rem;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.listbox-control option:hover {
    background-color: rgba(59, 130, 246, 0.08);
}

.listbox-control option:checked {
    background-color: #3b82f6 !important;
    color: #fff;
}

.listbox-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.btn-listbox-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 0.6rem;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-listbox-action:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.btn-listbox-action:active {
    transform: translateY(0);
}

.listbox-footer {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.01);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* Responsividade */
@media (max-width: 768px) {
    .listbox-actions {
        flex-direction: row;
        justify-content: center;
        padding: 1rem 0;
    }
    
    .btn-listbox-action {
        transform: rotate(90deg);
    }
    
    .btn-listbox-action:hover {
        transform: rotate(90deg) translateX(2px);
    }
}
