/* Universal Dual Multi-Select Widget CSS
 * Use for any add/subtract multi-select interface (jobs, shows, departments, etc.)
 *
 * HTML Structure:
 * <div class="dual-select">
 *   <div class="dual-select-desktop">
 *     <div class="dual-list">
 *       <div class="dual-list-label">Available Items</div>
 *       <select multiple class="dual-list-select">...</select>
 *     </div>
 *     <div class="dual-buttons">
 *       <button class="dual-btn dual-btn-add">Add →</button>
 *       <button class="dual-btn dual-btn-remove">← Remove</button>
 *     </div>
 *     <div class="dual-list">
 *       <div class="dual-list-label">Selected Items</div>
 *       <select multiple class="dual-list-select">...</select>
 *     </div>
 *   </div>
 *   <div class="dual-select-mobile">
 *     <div class="dual-list">
 *       <div class="dual-list-label">Available Items</div>
 *       <select multiple class="dual-list-select">...</select>
 *     </div>
 *     <div class="dual-buttons-mobile">
 *       <button class="dual-btn dual-btn-add">Add</button>
 *       <button class="dual-btn dual-btn-remove">Remove</button>
 *     </div>
 *     <div class="dual-list">
 *       <div class="dual-list-label">Selected Items</div>
 *       <select multiple class="dual-list-select">...</select>
 *     </div>
 *   </div>
 * </div>
 */

/* Container */
.dual-select {
    margin-bottom: 2rem;
    width: 100%;
}

.dual-select-container {
    position: relative;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

/* Mobile Layout (default) */
.dual-select-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dual-select-desktop {
    display: none;
}

/* List containers */
.dual-list {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dual-list-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    text-align: center;
    color: #ffffff;
    font-size: 1.1rem;
}

.dual-list-select {
    flex: 1;
    min-height: 120px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    color: #000000;
    font-size: 16px;
    font-family: Arial, Helvetica, Geneva, sans-serif;
}

/* Mobile buttons */
.dual-buttons-mobile {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
}

/* Button styles */
.dual-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #00a0ff;
    background: white;
    color: #00a0ff;
    border-radius: 6px;
    font-size: 2.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    max-width: 200px;
}

.dual-btn:hover {
    background: #00a0ff;
    color: white;
}

.dual-btn:active {
    transform: scale(0.95);
}

/* Desktop Layout */
@media (min-width: 769px) {
    .dual-select-mobile {
        display: none;
    }

    .dual-select-desktop {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        gap: 1rem;
        align-items: stretch;
    }

    .dual-list-select {
        min-height: 200px;
    }

    .dual-buttons {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }

    .dual-btn {
        min-width: 100px;
        max-width: none;
    }
}

/* Mobile responsive scaling */
@media (max-width: 768px) {
    .dual-select-desktop {
        display: none !important;
    }

    .dual-select-mobile {
        display: flex !important;
        transform: scale(1.0);
        transform-origin: center;
        margin: 2rem 0;
    }

    .dual-select-mobile .dual-list-select {
        min-height: 100px;
        font-size: 14px;
    }

    .dual-select-mobile .dual-btn {
        font-size: 14px;
        padding: 0.5rem;
    }
}
