544 lines
11 KiB
CSS
544 lines
11 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--bg-primary: #1e1f22;
|
|
--bg-secondary: #2b2d31;
|
|
--bg-tertiary: #313338;
|
|
--bg-overlay: rgba(0, 0, 0, 0.25);
|
|
--border: rgba(255, 255, 255, 0.07);
|
|
--accent: #5865f2;
|
|
--accent-secondary: #43b581;
|
|
--danger: #f23f42;
|
|
--text-primary: #f2f3f5;
|
|
--text-secondary: #b5bac1;
|
|
--text-muted: #8b929e;
|
|
--tile-muted-bg: rgba(255, 255, 255, 0.04);
|
|
--tile-speaking: rgba(67, 181, 129, 0.35);
|
|
--shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.2);
|
|
--radius-lg: 18px;
|
|
--radius-md: 12px;
|
|
--radius-sm: 8px;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', 'Segoe UI', sans-serif;
|
|
background: radial-gradient(circle at top left, rgba(88, 101, 242, 0.18), transparent 35%),
|
|
radial-gradient(circle at bottom right, rgba(235, 69, 158, 0.12), transparent 30%),
|
|
var(--bg-primary);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.voice-channel {
|
|
display: grid;
|
|
grid-template-columns: 320px 1fr;
|
|
grid-template-rows: 1fr auto;
|
|
grid-template-areas:
|
|
"sidebar main"
|
|
"sidebar controls";
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
backdrop-filter: blur(16px);
|
|
}
|
|
|
|
.channel-sidebar {
|
|
grid-area: sidebar;
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border);
|
|
padding: 32px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 28px;
|
|
}
|
|
|
|
.channel-sidebar__head h2 {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.channel-sidebar__head p {
|
|
margin-top: 4px;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.channel-sidebar__body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.channel-sidebar__footer {
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.connection-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.connection-card {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: 18px;
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.connection-card__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.connection-card__header h3 {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.pill {
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
padding: 4px 10px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.pill--success {
|
|
color: var(--accent-secondary);
|
|
}
|
|
|
|
.pill--danger {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.connection-status-list {
|
|
list-style: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.connection-status-list .label {
|
|
font-size: 13px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.connection-status-list .value {
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.connection-status-list .value--success {
|
|
color: var(--accent-secondary);
|
|
}
|
|
|
|
.connection-status-list .value--danger {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.field label {
|
|
font-size: 13px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.field__row {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.input {
|
|
background: rgba(0, 0, 0, 0.35);
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
padding: 10px 12px;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
width: 100%;
|
|
transition: border-color 0.2s ease;
|
|
}
|
|
|
|
.input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.input--readonly {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.icon-btn {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 0 12px;
|
|
font-size: 18px;
|
|
line-height: 32px;
|
|
color: var(--text-secondary);
|
|
transition: background 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
background: rgba(255, 255, 255, 0.18);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid transparent;
|
|
background: var(--accent);
|
|
color: white;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
|
|
}
|
|
|
|
.btn:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 16px rgba(88, 101, 242, 0.35);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn--connected {
|
|
background: rgba(67, 181, 129, 0.18);
|
|
color: var(--accent-secondary);
|
|
border-color: rgba(67, 181, 129, 0.4);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.channel-main {
|
|
grid-area: main;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
padding: 40px 56px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.channel-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.channel-header__text h1 {
|
|
font-size: 28px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.channel-header__text p {
|
|
margin-top: 6px;
|
|
color: var(--text-secondary);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.channel-header__actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.channel-pill {
|
|
padding: 8px 16px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.channel-pill.secondary {
|
|
background: rgba(88, 101, 242, 0.2);
|
|
border-color: rgba(88, 101, 242, 0.4);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.participants-grid {
|
|
display: grid;
|
|
gap: 20px;
|
|
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
}
|
|
|
|
.participant-tile {
|
|
position: relative;
|
|
background: var(--tile-muted-bg);
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-lg);
|
|
padding: 20px 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 14px;
|
|
transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
|
|
}
|
|
|
|
.participant-tile:hover {
|
|
transform: translateY(-4px);
|
|
border-color: rgba(255, 255, 255, 0.12);
|
|
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.participant-tile.is-speaking {
|
|
border-color: rgba(67, 181, 129, 0.65);
|
|
background: var(--tile-speaking);
|
|
}
|
|
|
|
.participant-tile.is-muted .participant-avatar {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.participant-tile.is-self {
|
|
border-color: rgba(88, 101, 242, 0.6);
|
|
}
|
|
|
|
.participant-avatar {
|
|
width: 72px;
|
|
height: 72px;
|
|
border-radius: 50%;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: white;
|
|
position: relative;
|
|
}
|
|
|
|
.participant-initials {
|
|
z-index: 1;
|
|
}
|
|
|
|
.participant-badge {
|
|
position: absolute;
|
|
bottom: -6px;
|
|
right: -6px;
|
|
background: var(--bg-tertiary);
|
|
border: 2px solid var(--bg-secondary);
|
|
border-radius: 50%;
|
|
width: 26px;
|
|
height: 26px;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.participant-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.participant-name {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.participant-tag {
|
|
font-size: 12px;
|
|
color: var(--accent);
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.control-dock {
|
|
grid-area: controls;
|
|
background: linear-gradient(180deg, rgba(49, 51, 56, 0.85), rgba(35, 36, 40, 0.95));
|
|
border-top: 1px solid var(--border);
|
|
padding: 18px 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.call-controls {
|
|
display: flex;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.call-controls__left,
|
|
.call-controls__right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.call-controls__center {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.self-pill {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
padding: 8px 14px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.self-pill--target {
|
|
color: var(--accent);
|
|
border-color: rgba(88, 101, 242, 0.45);
|
|
}
|
|
|
|
.ctrl-btn {
|
|
min-width: 120px;
|
|
padding: 12px 18px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
|
|
}
|
|
|
|
.ctrl-btn:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.ctrl-btn:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.ctrl-btn--primary {
|
|
background: var(--accent);
|
|
border-color: rgba(88, 101, 242, 0.45);
|
|
}
|
|
|
|
.ctrl-btn--secondary {
|
|
background: rgba(88, 101, 242, 0.15);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.ctrl-btn--muted {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.ctrl-btn--danger {
|
|
background: var(--danger);
|
|
border-color: rgba(242, 63, 66, 0.45);
|
|
}
|
|
|
|
.connection-hint {
|
|
font-size: 13px;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.status-widget {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.status-widget__label {
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.status-widget__value {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.status-widget__value--online {
|
|
color: var(--accent-secondary);
|
|
}
|
|
|
|
.status-widget__value--offline {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.status-widget__hint {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.voice-channel {
|
|
grid-template-columns: 1fr;
|
|
grid-template-areas:
|
|
"main"
|
|
"controls";
|
|
}
|
|
|
|
.channel-sidebar {
|
|
display: none;
|
|
}
|
|
|
|
.channel-main {
|
|
padding: 32px 24px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.channel-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
}
|
|
|
|
.call-controls {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.call-controls__center {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|