/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    width: 100%;
    padding: 0.875rem 1rem;
    /* Slightly taller for touch */
    padding-left: 2.75rem;
    /* Space for dots/icon */
    background-color: #1E293B;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    /* Softer corners */
    color: #F8FAFC;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown-trigger:hover {
    background-color: #334155;
    border-color: #475569;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background-color: #1E293B;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    z-index: 50;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    animation: slideDown 0.15s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.open {
    display: block;
}

.search-container {
    padding: 0.75rem;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    background: #1E293B;
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background-color: #0F172A;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    outline: none;
}

.search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.station-list {
    overflow-y: auto;
    padding: 0.5rem 0;
}

.station-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #CBD5E1;
    font-size: 0.9rem;
    transition: background-color 0.15s;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.station-option:last-child {
    border-bottom: none;
}

.station-option:hover,
.station-option.selected {
    background-color: #334155;
    color: #fff;
}

.station-dots {
    display: flex;
    gap: 4px;
    min-width: 16px;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-purple {
    background-color: #9B59B6;
}

.dot-green {
    background-color: #2ECC71;
}

.dot-yellow {
    background-color: #F1C40F;
}

.trigger-dots {
    display: flex;
    gap: 3px;
    margin-right: 10px;
}

.trigger-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.no-results {
    padding: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background-color: #4F46E5;
    /* Indigo 600 */
    color: white;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.btn-primary:hover {
    background-color: #4338CA;
}

.btn-primary:active {
    transform: translateY(1px);
}

.swap-btn {
    padding: 0.5rem;
    background-color: #1E293B;
    border: 1px solid #334155;
    border-radius: 50%;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-btn:hover {
    background-color: #334155;
    color: #fff;
    border-color: #475569;
}

/* Info Strips & Badges */
.info-strip {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background-color: #1E293B;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    display: inline-block;
    border-left: 3px solid var(--line-default);
}

.line-purple .info-strip {
    border-left-color: var(--line-purple);
}

.line-green .info-strip {
    border-left-color: var(--line-green);
}

.line-yellow .info-strip {
    border-left-color: var(--line-yellow);
}

.live-badge {
    background-color: #DC2626;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}