/* Pronunciation Dictionary Styles */

/* Dictionary filters */
.dictionary-filters {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.dictionary-filters .form-group {
    margin-bottom: 0;
}

/* Pronunciation table */
.pronunciation-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    overflow: hidden;
}

.pronunciation-table th,
.pronunciation-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.pronunciation-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pronunciation-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.pronunciation-table tbody tr:last-child td {
    border-bottom: none;
}

/* Editable cells */
.pronunciation-table .editable {
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.pronunciation-table .editable:hover {
    background: rgba(59, 130, 246, 0.1);
    outline: 1px solid var(--accent);
}

.pronunciation-table .editable code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success);
    border-color: var(--success);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
    background-color: white;
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--accent);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.enabled {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.status-badge.disabled {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}
