/* Text to Speech Specific Styles */

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    appearance: none;
    padding-right: 2.5rem;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 40px; /* Match select height */
}

input[type="range"] {
    flex: 1;
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    outline: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--secondary-hover);
}

.range-value {
    min-width: 3rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--secondary-color);
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: center;
}

.btn svg {
    width: 1.2em;
    height: 1.2em;
}

.btn-danger {
    background-color: var(--accent-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    font-weight: normal;
}

.btn-text:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.line-container {
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    max-height: 400px;
    overflow-y: auto;
}

.line-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
    line-height: 1.5;
}

.line-item:last-child {
    border-bottom: none;
}

.line-item:hover {
    background-color: #f8f9fa;
}

.line-item.active {
    background-color: #e3f2fd;
    border-left: 4px solid var(--secondary-color);
    padding-left: calc(1rem - 4px);
}

.ad-container {
    margin: 2rem 0;
    text-align: center;
}
