/* ============================================================ Mikes-Applio-UI – Design System Ruhiges Dark Theme, konsistente Abstände, klare Typografie ============================================================ */ :root { /* Farben */ --bg: #0d1117; --bg-elevated: #161b22; --bg-card: #1c2128; --bg-hover: #21262d; --bg-input: #0d1117; --border: #30363d; --border-subtle: #21262d; --text: #e6edf3; --text-muted: #8b949e; --text-faint: #6e7681; --accent: #58a6ff; --accent-hover: #79b8ff; --accent-dim: rgba(88, 166, 255, 0.15); --success: #3fb950; --success-dim: rgba(63, 185, 80, 0.15); --warning: #d29922; --warning-dim: rgba(210, 153, 34, 0.15); --error: #f85149; --error-dim: rgba(248, 81, 73, 0.15); --info: #58a6ff; --info-dim: rgba(88, 166, 255, 0.15); /* Abstände (4er-Raster) */ --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; /* Radien */ --radius-sm: 6px; --radius: 10px; --radius-lg: 14px; /* Typografie */ --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --font-mono: "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace; --text-xs: 0.75rem; --text-sm: 0.8125rem; --text-base: 0.9375rem; --text-lg: 1.0625rem; --text-xl: 1.25rem; --text-2xl: 1.5rem; /* Layout */ --sidebar-width: 240px; --topbar-height: 56px; /* Schatten */ --shadow: 0 1px 3px rgba(0, 0, 0, 0.4); --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5); } * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; } body { font-family: var(--font); font-size: var(--text-base); line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; } /* ---------- App-Layout ---------- */ .app { display: flex; height: 100vh; overflow: hidden; } /* ---------- Sidebar ---------- */ .sidebar { width: var(--sidebar-width); background: var(--bg-elevated); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; transition: transform 0.25s ease; z-index: 100; } .sidebar__brand { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-4); border-bottom: 1px solid var(--border-subtle); min-height: var(--topbar-height); } .sidebar__logo { font-size: 1.5rem; } .sidebar__title { display: flex; flex-direction: column; } .sidebar__name { font-weight: 600; font-size: var(--text-base); letter-spacing: -0.01em; } .sidebar__version { font-size: var(--text-xs); color: var(--text-faint); } .sidebar__nav { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-2); display: flex; flex-direction: column; gap: 2px; } .nav-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--text-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500; transition: background 0.15s, color 0.15s; position: relative; } .nav-item:hover { background: var(--bg-hover); color: var(--text); } .nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } .nav-item.active { background: var(--accent-dim); color: var(--accent); } .nav-item__icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; } .nav-item__badge { margin-left: auto; background: var(--accent); color: #fff; font-size: var(--text-xs); font-weight: 600; padding: 1px 7px; border-radius: 10px; min-width: 20px; text-align: center; } .sidebar__footer { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border-subtle); } .mode-indicator { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-muted); } .mode-indicator__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; } .mode-indicator__dot.real { background: var(--success); } .mode-indicator__dot.error { background: var(--error); } /* ---------- Main ---------- */ .main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; } .topbar { height: var(--topbar-height); display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-5); border-bottom: 1px solid var(--border); background: var(--bg-elevated); flex-shrink: 0; } .topbar__menu { display: none; background: none; border: none; color: var(--text); font-size: 1.25rem; cursor: pointer; padding: var(--space-1); } .topbar__title { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; } .topbar__status { margin-left: auto; font-size: var(--text-xs); color: var(--text-muted); } .content { flex: 1; overflow-y: auto; padding: var(--space-5); } /* ---------- Loading ---------- */ .loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-7); color: var(--text-muted); } .spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ---------- Cards ---------- */ .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); } .card--clickable { cursor: pointer; transition: border-color 0.15s, transform 0.1s; } .card--clickable:hover { border-color: var(--accent); transform: translateY(-1px); } .card__header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); } .card__title { font-size: var(--text-base); font-weight: 600; } .card__subtitle { font-size: var(--text-xs); color: var(--text-muted); } .card__icon { font-size: 1.5rem; } /* ---------- Grids ---------- */ .grid { display: grid; gap: var(--space-4); } .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } /* ---------- Page sections ---------- */ .page { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-5); } .page__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; } .page__description { color: var(--text-muted); font-size: var(--text-sm); max-width: 640px; } .section-title { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-3); } /* ---------- Buttons ---------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-hover); color: var(--text); font-size: var(--text-sm); font-weight: 500; font-family: inherit; cursor: pointer; transition: background 0.15s, border-color 0.15s; text-decoration: none; white-space: nowrap; } .btn:hover { background: var(--border); } .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn--primary:hover { background: var(--accent-hover); } .btn--danger { background: var(--error-dim); border-color: var(--error); color: var(--error); } .btn--danger:hover { background: var(--error); color: #fff; } .btn--success { background: var(--success-dim); border-color: var(--success); color: var(--success); } .btn--sm { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); } .btn--lg { padding: var(--space-3) var(--space-5); font-size: var(--text-base); } .btn--block { width: 100%; } .btn--icon { padding: var(--space-2); min-width: 36px; } /* ---------- Forms ---------- */ .form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); } .form-label { font-size: var(--text-sm); font-weight: 500; color: var(--text); } .form-label .tech { color: var(--text-faint); font-weight: 400; font-size: var(--text-xs); } .form-hint { font-size: var(--text-xs); color: var(--text-muted); } .form-input, .form-select, .form-textarea { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-input); color: var(--text); font-size: var(--text-sm); font-family: inherit; transition: border-color 0.15s; } .form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); } .form-textarea { resize: vertical; min-height: 80px; } .form-select { cursor: pointer; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); } .source-tabs { display: flex; gap: var(--space-2); padding-bottom: var(--space-4); margin-bottom: var(--space-4); border-bottom: 1px solid var(--border-subtle); } .recording-panel, .live-status { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-input); } .recording-panel #recording-time { min-width: 130px; margin-right: auto; font-family: var(--font-mono); font-size: var(--text-sm); } .recording-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; } .recording-dot--active { background: var(--error); box-shadow: 0 0 0 5px var(--error-dim); animation: recording-pulse 1.2s ease-in-out infinite; } @keyframes recording-pulse { 50% { opacity: 0.45; } } /* Range slider */ .form-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--border); outline: none; } .form-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid var(--bg); } .form-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid var(--bg); } .range-value { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent); min-width: 48px; text-align: right; } /* ---------- Badges & Status ---------- */ .badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px 10px; border-radius: 20px; font-size: var(--text-xs); font-weight: 600; } .badge--success { background: var(--success-dim); color: var(--success); } .badge--warning { background: var(--warning-dim); color: var(--warning); } .badge--error { background: var(--error-dim); color: var(--error); } .badge--info { background: var(--info-dim); color: var(--info); } .badge--neutral { background: var(--bg-hover); color: var(--text-muted); } .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .status-dot--success { background: var(--success); } .status-dot--warning { background: var(--warning); } .status-dot--error { background: var(--error); } .status-dot--info { background: var(--info); } .status-dot--neutral { background: var(--text-faint); } /* ---------- Progress ---------- */ .progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; } .progress__bar { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.4s ease; } .progress--success .progress__bar { background: var(--success); } .progress--error .progress__bar { background: var(--error); } .progress-label { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-1); } /* ---------- Job cards ---------- */ .job-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); } .job-card__header { display: flex; align-items: center; gap: var(--space-3); } .job-card__type { font-size: var(--text-sm); font-weight: 600; } .job-card__meta { font-size: var(--text-xs); color: var(--text-faint); } .job-card__body { flex: 1; } .job-card__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; } /* ---------- Tables ---------- */ .table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); } .table th { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 500; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; } .table td { padding: var(--space-3); border-bottom: 1px solid var(--border-subtle); vertical-align: middle; } .table tr:last-child td { border-bottom: none; } .table tr:hover td { background: var(--bg-hover); } /* ---------- Model cards ---------- */ .model-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); transition: border-color 0.15s; } .model-card:hover { border-color: var(--accent); } .model-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); } .model-card__name { font-size: var(--text-base); font-weight: 600; } .model-card__meta { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-xs); color: var(--text-muted); } .model-card__meta-row { display: flex; justify-content: space-between; gap: var(--space-3); } .model-card__meta-row .value { color: var(--text); font-family: var(--font-mono); } /* ---------- Stepper (guided workflows) ---------- */ .stepper { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-5); flex-wrap: wrap; } .stepper__step { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3); border-radius: 20px; font-size: var(--text-xs); font-weight: 500; color: var(--text-faint); background: var(--bg-card); border: 1px solid var(--border-subtle); } .stepper__step--active { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); } .stepper__step--done { color: var(--success); border-color: var(--success); background: var(--success-dim); } .stepper__step-num { width: 20px; height: 20px; border-radius: 50%; background: var(--border); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 600; } .stepper__step--active .stepper__step-num { background: var(--accent); color: #fff; } .stepper__step--done .stepper__step-num { background: var(--success); color: #fff; } .stepper__connector { width: 24px; height: 1px; background: var(--border); } /* ---------- Drop zone ---------- */ .dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: var(--space-6); text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); color: var(--text-muted); } .dropzone:hover, .dropzone--dragover { border-color: var(--accent); background: var(--accent-dim); } .dropzone__icon { font-size: 2rem; } .dropzone__text { font-size: var(--text-sm); } .dropzone__hint { font-size: var(--text-xs); color: var(--text-faint); } /* ---------- Audio player ---------- */ .audio-player { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); } .audio-player__label { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--space-2); display: flex; align-items: center; gap: var(--space-2); } .audio-player audio { width: 100%; height: 40px; } /* ---------- Alerts / Banners ---------- */ .alert { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); border: 1px solid; font-size: var(--text-sm); } .alert--info { background: var(--info-dim); border-color: var(--info); color: var(--info); } .alert--warning { background: var(--warning-dim); border-color: var(--warning); color: var(--warning); } .alert--error { background: var(--error-dim); border-color: var(--error); color: var(--error); } .alert--success { background: var(--success-dim); border-color: var(--success); color: var(--success); } .alert__icon { flex-shrink: 0; } .alert__content { flex: 1; } .alert__title { font-weight: 600; margin-bottom: 2px; } .alert__text { opacity: 0.9; font-size: var(--text-xs); } /* ---------- Toasts ---------- */ .toast-container { position: fixed; bottom: var(--space-5); right: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); z-index: 1000; max-width: 380px; } .toast { background: var(--bg-elevated); border: 1px solid var(--border); border-left: 3px solid var(--info); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-lg); font-size: var(--text-sm); animation: toast-in 0.25s ease; display: flex; align-items: center; gap: var(--space-3); } .toast--success { border-left-color: var(--success); } .toast--error { border-left-color: var(--error); } .toast--warning { border-left-color: var(--warning); } @keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } } /* ---------- Modal ---------- */ /* Author styles such as display:flex otherwise override the browser's built-in [hidden] rule and leave an empty modal blocking the whole UI. */ [hidden] { display: none !important; } .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 500; padding: var(--space-4); } .modal { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg); } .modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); } .modal__title { font-size: var(--text-lg); font-weight: 600; } .modal__close { background: none; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; padding: var(--space-1); } .modal__close:hover { color: var(--text); } /* ---------- Collapsible / Details ---------- */ .details { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: var(--space-3); } .details summary { padding: var(--space-3); cursor: pointer; font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); list-style: none; display: flex; align-items: center; gap: var(--space-2); } .details summary::-webkit-details-marker { display: none; } .details summary::before { content: "▸"; transition: transform 0.15s; font-size: var(--text-xs); } .details[open] summary::before { transform: rotate(90deg); } .details__content { padding: 0 var(--space-3) var(--space-3); } /* ---------- Code / Diagnostics ---------- */ .code-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6; overflow-x: auto; white-space: pre-wrap; word-break: break-word; color: var(--text-muted); } /* ---------- Empty state ---------- */ .empty-state { text-align: center; padding: var(--space-7); color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); } .empty-state__icon { font-size: 2.5rem; opacity: 0.5; } .empty-state__title { font-size: var(--text-base); font-weight: 600; color: var(--text); } .empty-state__text { font-size: var(--text-sm); max-width: 400px; } /* ---------- Stat tiles ---------- */ .stat-tile { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); } .stat-tile__label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; } .stat-tile__value { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; } .stat-tile__sub { font-size: var(--text-xs); color: var(--text-faint); } /* ---------- Quick actions ---------- */ .quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); } .quick-action { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: var(--space-3); transition: border-color 0.15s, transform 0.1s; } .quick-action:hover { border-color: var(--accent); transform: translateY(-2px); } .quick-action__icon { font-size: 1.75rem; } .quick-action__title { font-weight: 600; font-size: var(--text-base); } .quick-action__desc { font-size: var(--text-xs); color: var(--text-muted); } /* ---------- Responsive ---------- */ @media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 768px) { .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); } .sidebar--open { transform: translateX(0); } .topbar__menu { display: block; } .content { padding: var(--space-4); } .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .page { gap: var(--space-4); } .toast-container { left: var(--space-4); right: var(--space-4); max-width: none; } } /* ---------- Utility ---------- */ .text-muted { color: var(--text-muted); } .text-faint { color: var(--text-faint); } .text-success { color: var(--success); } .text-error { color: var(--error); } .text-warning { color: var(--warning); } .text-mono { font-family: var(--font-mono); } .text-sm { font-size: var(--text-sm); } .text-xs { font-size: var(--text-xs); } .mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); } .flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; } .flex-center { display: flex; align-items: center; gap: var(--space-2); } .gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .hidden { display: none !important; }