/* live-station.css */

/* Search Container */
.search-container {
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    flex: 1;
    display: flex;
    background: #f8fafc;
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid #e2e8f0;
    align-items: center;
}

.search-box input {
    flex: 1;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #334155;
    width: 100%;
}

.microphone {
    background: var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(184, 28, 129, 0.3);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.microphone:active {
    transform: scale(0.95);
}

.mic-icon {
    color: white;
    font-size: 18px;
}

/* Station List */
.station-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.station-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.station-list li.station {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.station-list li.station:hover {
    background-color: #f8fafc;
}

/* Sub-routes */
.routes {
    list-style-type: none;
    border-radius: 8px;
    background: #fdf2f8;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid #fbe2f0;
}

.route {
    padding: 8px 12px;
    border-bottom: 1px solid #fce7f3;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.route:last-child {
    border-bottom: none;
}

.route:hover {
    background-color: #fce7f3;
}

/* Tables Wrapper */
.results-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    font-size: 13px;
}

.results-table td,
.results-table th {
    padding: 12px 8px;
    border-bottom: 1px solid #f1f5f9;
}

.results-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Fix sticky header for results mapping inherited from live-train.css */
.results-table thead {
    background: linear-gradient(45deg, rgba(177, 31, 129, 1) 0%, rgba(202, 22, 131, 1) 27%, rgba(237, 90, 158, 1) 79%);

}

.results-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    color: white;
}