mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
1181 lines
22 KiB
CSS
1181 lines
22 KiB
CSS
:root {
|
|
color-scheme: dark light;
|
|
--bg: #0f172a;
|
|
--bg-alt: #111c30;
|
|
--panel: rgba(255, 255, 255, 0.04);
|
|
--panel-border: rgba(148, 163, 184, 0.12);
|
|
--text: #e2e8f0;
|
|
--muted: #94a3b8;
|
|
--accent: #38bdf8;
|
|
--accent-strong: #0ea5e9;
|
|
--success: #34d399;
|
|
--danger: #f87171;
|
|
--warning: #fbbf24;
|
|
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 40%),
|
|
radial-gradient(circle at 100% 0%, rgba(244, 114, 182, 0.08), transparent 45%),
|
|
var(--bg);
|
|
color: var(--text);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.top-bar {
|
|
backdrop-filter: blur(20px);
|
|
background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
|
|
padding: 1.25rem 3rem;
|
|
border-bottom: 1px solid var(--panel-border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.brand__mark {
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
.brand__name {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.brand__tagline {
|
|
color: var(--muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.top-actions .btn {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
border: 1px solid transparent;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 999px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.top-actions .btn:hover {
|
|
border-color: var(--accent);
|
|
background: rgba(56, 189, 248, 0.1);
|
|
}
|
|
|
|
.top-actions .btn.is-active {
|
|
border-color: var(--accent);
|
|
background: rgba(56, 189, 248, 0.18);
|
|
color: #fff;
|
|
box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
|
|
}
|
|
|
|
.main {
|
|
flex: 1;
|
|
padding: 2.5rem 3rem 3.5rem;
|
|
max-width: 1100px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
display: grid;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.footer {
|
|
padding: 1.5rem 3rem;
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 0.75rem;
|
|
color: var(--muted);
|
|
border-top: 1px solid var(--panel-border);
|
|
background: rgba(15, 23, 42, 0.8);
|
|
}
|
|
|
|
.footer a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 28px;
|
|
padding: 2rem;
|
|
box-shadow: 0 20px 50px rgba(8, 15, 32, 0.35);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.15), transparent 55%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.card__title {
|
|
font-size: 1.4rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.grid--two {
|
|
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
|
}
|
|
|
|
.button {
|
|
appearance: none;
|
|
border: none;
|
|
border-radius: 16px;
|
|
padding: 0.85rem 1.2rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
|
|
color: #fff;
|
|
cursor: pointer;
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
|
|
}
|
|
|
|
.button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 16px 30px rgba(14, 165, 233, 0.28);
|
|
}
|
|
|
|
.button--ghost {
|
|
background: transparent;
|
|
border: 1px solid var(--panel-border);
|
|
color: var(--muted);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.button--ghost:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.field label {
|
|
font-weight: 500;
|
|
color: var(--muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.field input,
|
|
.field select,
|
|
.field textarea {
|
|
width: 100%;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
background: rgba(15, 23, 42, 0.45);
|
|
padding: 0.75rem 1rem;
|
|
color: var(--text);
|
|
font-size: 1rem;
|
|
transition: border 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.field input:focus,
|
|
.field select:focus,
|
|
.field textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
|
|
}
|
|
|
|
.split {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 999px;
|
|
padding: 0.35rem 0.8rem;
|
|
font-size: 0.8rem;
|
|
background: rgba(148, 163, 184, 0.12);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding: 0.4rem 0.85rem;
|
|
border-radius: 999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.badge--pending {
|
|
background: rgba(148, 163, 184, 0.12);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.badge--running {
|
|
background: rgba(56, 189, 248, 0.12);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.badge--completed {
|
|
background: rgba(52, 211, 153, 0.15);
|
|
color: var(--success);
|
|
}
|
|
|
|
.badge--failed,
|
|
.badge--cancelled {
|
|
background: rgba(248, 113, 113, 0.15);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.log-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 0.65rem;
|
|
max-height: 260px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.log-item {
|
|
padding: 0.75rem 0.95rem;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(148, 163, 184, 0.12);
|
|
background: rgba(15, 23, 42, 0.3);
|
|
font-size: 0.9rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.log-item--success {
|
|
border-color: rgba(52, 211, 153, 0.4);
|
|
color: var(--success);
|
|
}
|
|
|
|
.log-item--error {
|
|
border-color: rgba(248, 113, 113, 0.45);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.log-item--warning {
|
|
border-color: rgba(251, 191, 36, 0.45);
|
|
color: var(--warning);
|
|
}
|
|
|
|
.jobs-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
overflow: hidden;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.jobs-table thead {
|
|
background: rgba(148, 163, 184, 0.12);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.jobs-table th,
|
|
.jobs-table td {
|
|
padding: 0.9rem 1.15rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.jobs-table tbody tr {
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.12);
|
|
}
|
|
|
|
.jobs-table tbody tr:hover {
|
|
background: rgba(56, 189, 248, 0.08);
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 100%;
|
|
height: 9px;
|
|
border-radius: 999px;
|
|
background: rgba(148, 163, 184, 0.15);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar__fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--accent), var(--accent-strong));
|
|
border-radius: inherit;
|
|
transition: width 0.35s ease;
|
|
}
|
|
|
|
.list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.list__item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border: 1px solid rgba(148, 163, 184, 0.18);
|
|
border-radius: 18px;
|
|
padding: 1rem 1.25rem;
|
|
background: rgba(15, 23, 42, 0.35);
|
|
gap: 1rem;
|
|
}
|
|
|
|
.alert {
|
|
margin: 1rem 0;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 14px;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.alert--success {
|
|
background: rgba(52, 211, 153, 0.12);
|
|
border: 1px solid rgba(52, 211, 153, 0.35);
|
|
color: var(--success);
|
|
}
|
|
|
|
.button--danger {
|
|
background: linear-gradient(135deg, var(--danger), #ef4444);
|
|
box-shadow: 0 12px 30px rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.settings__form {
|
|
display: grid;
|
|
gap: 1.75rem;
|
|
}
|
|
|
|
.settings__section {
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
border-radius: 18px;
|
|
padding: 1.25rem 1.4rem;
|
|
display: grid;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.settings__section legend {
|
|
font-weight: 600;
|
|
padding: 0 0.5rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.field--inline {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.settings__actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.pill-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.pill {
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
padding: 0.35rem 0.75rem;
|
|
font-size: 0.8rem;
|
|
color: var(--muted);
|
|
background: rgba(15, 23, 42, 0.4);
|
|
}
|
|
|
|
.text-preview {
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
border-radius: 18px;
|
|
background: rgba(15, 23, 42, 0.35);
|
|
padding: 1.1rem 1.25rem;
|
|
display: grid;
|
|
gap: 0.85rem;
|
|
min-height: 220px;
|
|
}
|
|
|
|
.text-preview__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.text-preview__header h2 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.text-preview__meta {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
font-size: 0.85rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.text-preview__body {
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-family: inherit;
|
|
font-size: 0.95rem;
|
|
line-height: 1.5;
|
|
color: var(--text);
|
|
}
|
|
|
|
.text-preview[data-state="empty"] .text-preview__body {
|
|
color: var(--muted);
|
|
}
|
|
|
|
progress.progress {
|
|
width: 100%;
|
|
height: 0.6rem;
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
background: rgba(148, 163, 184, 0.15);
|
|
}
|
|
|
|
progress.progress::-webkit-progress-bar {
|
|
background: rgba(148, 163, 184, 0.15);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
progress.progress::-webkit-progress-value {
|
|
background: linear-gradient(90deg, var(--accent), var(--accent-strong));
|
|
border-radius: 999px;
|
|
}
|
|
|
|
progress.progress::-moz-progress-bar {
|
|
background: linear-gradient(90deg, var(--accent), var(--accent-strong));
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.voice-mixer__header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.voice-mixer__header-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.voice-mixer__layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(260px, 300px) 1fr;
|
|
gap: 2.25rem;
|
|
align-items: start;
|
|
}
|
|
|
|
.voice-mixer__profiles {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
border-right: 1px solid var(--panel-border);
|
|
padding-right: 1.5rem;
|
|
}
|
|
|
|
.voice-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.voice-list__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.voice-list__item {
|
|
border: 1px solid rgba(148, 163, 184, 0.18);
|
|
border-radius: 16px;
|
|
padding: 0.75rem 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
background: rgba(15, 23, 42, 0.35);
|
|
transition: border 0.2s ease, background 0.2s ease;
|
|
}
|
|
|
|
.voice-list__item.is-selected {
|
|
border-color: var(--accent);
|
|
background: rgba(56, 189, 248, 0.1);
|
|
}
|
|
|
|
.voice-list__select {
|
|
all: unset;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.voice-list__select:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.voice-list__name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.voice-list__meta {
|
|
font-size: 0.78rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.voice-list__actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.voice-list__action {
|
|
border: none;
|
|
border-radius: 999px;
|
|
padding: 0.35rem 0.65rem;
|
|
font-size: 0.75rem;
|
|
cursor: pointer;
|
|
background: rgba(148, 163, 184, 0.15);
|
|
color: var(--muted);
|
|
transition: background 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.voice-list__action:hover {
|
|
background: rgba(56, 189, 248, 0.18);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.voice-list__action--danger:hover {
|
|
background: rgba(248, 113, 113, 0.2);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.voice-editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.voice-editor__meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.voice-editor__identity {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem 1rem;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.voice-editor__name-field {
|
|
flex: 1 1 220px;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.voice-editor__toolbar {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.voice-editor__language {
|
|
max-width: 260px;
|
|
width: min(100%, 260px);
|
|
}
|
|
|
|
.voice-editor__summary {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.voice-editor__canvas {
|
|
display: grid;
|
|
grid-template-columns: minmax(280px, 340px) minmax(320px, 1fr);
|
|
gap: 2rem;
|
|
align-items: start;
|
|
}
|
|
|
|
.voice-available,
|
|
.voice-mix {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.voice-available__header,
|
|
.voice-mix__header {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.voice-available__title {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.voice-filter {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
min-width: 180px;
|
|
}
|
|
|
|
.voice-filter__label {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.voice-filter__controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.voice-filter select {
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
background: rgba(15, 23, 42, 0.55);
|
|
padding: 0.55rem 0.75rem;
|
|
color: var(--text);
|
|
font-size: 0.95rem;
|
|
min-width: 0;
|
|
flex: 1 1 200px;
|
|
}
|
|
|
|
.voice-filter select:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
|
|
}
|
|
|
|
.voice-gender-filter {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.voice-gender-filter__button {
|
|
border: 1px solid rgba(148, 163, 184, 0.3);
|
|
background: rgba(15, 23, 42, 0.45);
|
|
color: var(--muted);
|
|
font-size: 1.05rem;
|
|
line-height: 1;
|
|
width: 2.25rem;
|
|
height: 2.25rem;
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
transition: border 0.2s ease, background 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.voice-gender-filter__button:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.voice-gender-filter__button[aria-pressed="true"] {
|
|
background: rgba(56, 189, 248, 0.16);
|
|
border-color: var(--accent);
|
|
color: #fff;
|
|
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
|
|
}
|
|
|
|
.voice-available__list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
gap: 0.85rem;
|
|
max-height: 55vh;
|
|
overflow-y: auto;
|
|
padding-right: 0.5rem;
|
|
}
|
|
|
|
.voice-available__empty {
|
|
margin: 0;
|
|
padding: 1.25rem 1rem;
|
|
text-align: center;
|
|
border: 1px dashed rgba(148, 163, 184, 0.25);
|
|
border-radius: 16px;
|
|
color: var(--muted);
|
|
background: rgba(15, 23, 42, 0.3);
|
|
}
|
|
|
|
.voice-available__card {
|
|
border: 1px solid rgba(148, 163, 184, 0.18);
|
|
border-radius: 18px;
|
|
background: rgba(15, 23, 42, 0.33);
|
|
padding: 0.9rem 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
cursor: grab;
|
|
transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
|
|
}
|
|
|
|
.voice-available__card:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.voice-available__card:hover {
|
|
border-color: var(--accent);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.voice-available__card.is-active {
|
|
border-color: rgba(56, 189, 248, 0.35);
|
|
background: rgba(56, 189, 248, 0.12);
|
|
cursor: default;
|
|
}
|
|
|
|
.voice-available__info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.voice-available__name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.voice-available__meta {
|
|
font-size: 0.78rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.voice-available__add {
|
|
border: none;
|
|
border-radius: 12px;
|
|
padding: 0.4rem 0.85rem;
|
|
cursor: pointer;
|
|
background: rgba(56, 189, 248, 0.15);
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
transition: background 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.voice-available__add:hover:not(:disabled) {
|
|
background: rgba(56, 189, 248, 0.25);
|
|
color: #fff;
|
|
}
|
|
|
|
.voice-available__add:disabled {
|
|
cursor: default;
|
|
background: rgba(148, 163, 184, 0.2);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.voice-mix__dropzone {
|
|
border: 2px dashed rgba(148, 163, 184, 0.25);
|
|
border-radius: 20px;
|
|
padding: 1.5rem;
|
|
min-height: 320px;
|
|
background: rgba(15, 23, 42, 0.25);
|
|
transition: border 0.2s ease, background 0.2s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.voice-mix__dropzone.is-hovered {
|
|
border-color: var(--accent);
|
|
background: rgba(56, 189, 248, 0.08);
|
|
}
|
|
|
|
.voice-mix__empty {
|
|
margin: 0;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.voice-mix__list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.mix-voice {
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
border-radius: 18px;
|
|
background: rgba(15, 23, 42, 0.4);
|
|
padding: 1.1rem 1.2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.9rem;
|
|
}
|
|
|
|
.mix-voice__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.mix-voice__info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.mix-voice__title {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.mix-voice__meta {
|
|
font-size: 0.78rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.mix-voice__weight {
|
|
margin-left: auto;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.mix-voice__remove {
|
|
border: none;
|
|
border-radius: 12px;
|
|
width: 28px;
|
|
height: 28px;
|
|
background: rgba(248, 113, 113, 0.2);
|
|
color: #fca5a5;
|
|
font-size: 1.1rem;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
display: grid;
|
|
place-items: center;
|
|
transition: background 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.mix-voice__remove:hover {
|
|
background: rgba(248, 113, 113, 0.35);
|
|
color: #fff;
|
|
}
|
|
|
|
.mix-slider {
|
|
width: 100%;
|
|
appearance: none;
|
|
height: 8px;
|
|
border-radius: 999px;
|
|
background: rgba(148, 163, 184, 0.25);
|
|
outline: none;
|
|
cursor: pointer;
|
|
transition: box-shadow 0.2s ease;
|
|
}
|
|
|
|
.mix-slider:focus-visible {
|
|
box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
|
|
}
|
|
|
|
.mix-slider::-webkit-slider-thumb {
|
|
appearance: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
|
|
box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
|
|
border: none;
|
|
}
|
|
|
|
.mix-slider::-moz-range-thumb {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
|
|
border: none;
|
|
box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
|
|
}
|
|
|
|
.voice-editor__actions {
|
|
display: grid;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.voice-preview {
|
|
display: grid;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.field--slider {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.field--slider label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
#preview-speed {
|
|
width: 100%;
|
|
appearance: none;
|
|
height: 8px;
|
|
border-radius: 999px;
|
|
background: rgba(148, 163, 184, 0.25);
|
|
outline: none;
|
|
transition: box-shadow 0.2s ease;
|
|
}
|
|
|
|
#preview-speed:focus-visible {
|
|
box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
|
|
}
|
|
|
|
#preview-speed::-webkit-slider-thumb {
|
|
appearance: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
|
|
border: none;
|
|
box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
|
|
}
|
|
|
|
#preview-speed::-moz-range-thumb {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
|
|
border: none;
|
|
box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
|
|
}
|
|
|
|
.voice-preview__controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.voice-preview audio {
|
|
width: 100%;
|
|
border-radius: 12px;
|
|
background: rgba(15, 23, 42, 0.45);
|
|
}
|
|
|
|
.voice-status {
|
|
min-height: 1.2rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.voice-status--info {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.voice-status--success {
|
|
color: var(--success);
|
|
}
|
|
|
|
.voice-status--warning {
|
|
color: var(--warning);
|
|
}
|
|
|
|
.voice-status--danger {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.voice-mixer[data-state="loading"] .voice-editor {
|
|
opacity: 0.6;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.icon-button {
|
|
appearance: none;
|
|
border-radius: 16px;
|
|
width: 2.6rem;
|
|
height: 2.6rem;
|
|
display: grid;
|
|
place-items: center;
|
|
border: 1px solid rgba(148, 163, 184, 0.25);
|
|
background: rgba(15, 23, 42, 0.4);
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
transition: color 0.2s ease, border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.icon-button svg {
|
|
width: 1.15rem;
|
|
height: 1.15rem;
|
|
}
|
|
|
|
.icon-button:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.icon-button:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.icon-button:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.icon-button--primary {
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
|
|
border: none;
|
|
color: #fff;
|
|
box-shadow: 0 10px 25px rgba(56, 189, 248, 0.32);
|
|
}
|
|
|
|
.icon-button--primary:hover {
|
|
box-shadow: 0 14px 28px rgba(14, 165, 233, 0.4);
|
|
}
|
|
|
|
.icon-button--danger {
|
|
background: linear-gradient(135deg, var(--danger), #ef4444);
|
|
border: none;
|
|
color: #fff;
|
|
box-shadow: 0 10px 25px rgba(239, 68, 68, 0.28);
|
|
}
|
|
|
|
.icon-button--danger:hover {
|
|
box-shadow: 0 14px 30px rgba(248, 113, 113, 0.35);
|
|
}
|
|
|
|
.icon-button--danger:disabled {
|
|
background: rgba(248, 113, 113, 0.2);
|
|
color: rgba(248, 113, 113, 0.65);
|
|
border: 1px solid rgba(248, 113, 113, 0.25);
|
|
}
|
|
|
|
.icon-button--primary:disabled {
|
|
background: rgba(56, 189, 248, 0.25);
|
|
border: 1px solid rgba(56, 189, 248, 0.2);
|
|
color: rgba(255, 255, 255, 0.8);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.button[data-role="preview-button"] {
|
|
position: relative;
|
|
}
|
|
|
|
.button[data-role="preview-button"][data-loading="true"] {
|
|
padding-left: 2.8rem;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.button[data-role="preview-button"][data-loading="true"]::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 1.1rem;
|
|
top: 50%;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
margin-top: -0.5rem;
|
|
border-radius: 50%;
|
|
border: 2px solid rgba(255, 255, 255, 0.35);
|
|
border-right-color: rgba(255, 255, 255, 0.85);
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.button[data-role="preview-button"][data-loading="true"]::after {
|
|
animation-duration: 1.6s;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 980px) {
|
|
.voice-mixer__layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.voice-mixer__profiles {
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--panel-border);
|
|
padding-right: 0;
|
|
padding-bottom: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.voice-editor__canvas {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.voice-available__list {
|
|
max-height: none;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.voice-available__header,
|
|
.voice-mix__header {
|
|
align-items: stretch;
|
|
}
|
|
|
|
.voice-filter {
|
|
width: 100%;
|
|
}
|
|
|
|
.voice-mix__dropzone {
|
|
min-height: 220px;
|
|
}
|
|
|
|
.field--slider label {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|