Files
controller-v2/client/src/index.css
T

374 lines
10 KiB
CSS

/* ============================================================
LUXSIN X9 CONTROLLER — Global Design System
Design Philosophy: Apple iOS Dark + Glass Morphism
- Pure black background (#000000 / #0a0a0a)
- Deep charcoal glass cards (#1c1c1e / rgba(28,28,30,0.9))
- #00FFF6 cyan as the ONLY accent color
- iOS-style list rows with hairline dividers
- Frosted glass buttons with subtle inner highlight
- Rounded corners: cards=16px, buttons=12px, toggles=full
============================================================ */
@import "tailwindcss";
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
@theme inline {
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
}
:root {
--radius: 1rem;
/* Pure black background like reference images */
--background: oklch(0.04 0 0);
--foreground: oklch(0.95 0 0);
--card: oklch(0.11 0 0);
--card-foreground: oklch(0.95 0 0);
--popover: oklch(0.11 0 0);
--popover-foreground: oklch(0.95 0 0);
/* Cyan accent #00FFF6 */
--primary: oklch(0.93 0.18 192);
--primary-foreground: oklch(0.04 0 0);
--secondary: oklch(0.15 0 0);
--secondary-foreground: oklch(0.8 0 0);
--muted: oklch(0.15 0 0);
--muted-foreground: oklch(0.5 0 0);
--accent: oklch(0.93 0.18 192);
--accent-foreground: oklch(0.04 0 0);
--destructive: oklch(0.65 0.22 25);
--destructive-foreground: oklch(0.98 0 0);
--border: oklch(1 0 0 / 8%);
--input: oklch(1 0 0 / 10%);
--ring: oklch(0.93 0.18 192);
--sidebar: oklch(0.08 0 0);
--sidebar-foreground: oklch(0.95 0 0);
--sidebar-primary: oklch(0.93 0.18 192);
--sidebar-primary-foreground: oklch(0.04 0 0);
--sidebar-accent: oklch(0.14 0 0);
--sidebar-accent-foreground: oklch(0.95 0 0);
--sidebar-border: oklch(1 0 0 / 8%);
--sidebar-ring: oklch(0.93 0.18 192);
}
.dark {
--background: oklch(0.04 0 0);
--foreground: oklch(0.95 0 0);
--card: oklch(0.11 0 0);
--card-foreground: oklch(0.95 0 0);
--popover: oklch(0.11 0 0);
--popover-foreground: oklch(0.95 0 0);
--primary: oklch(0.93 0.18 192);
--primary-foreground: oklch(0.04 0 0);
--secondary: oklch(0.15 0 0);
--secondary-foreground: oklch(0.8 0 0);
--muted: oklch(0.15 0 0);
--muted-foreground: oklch(0.5 0 0);
--accent: oklch(0.93 0.18 192);
--accent-foreground: oklch(0.04 0 0);
--destructive: oklch(0.65 0.22 25);
--destructive-foreground: oklch(0.98 0 0);
--border: oklch(1 0 0 / 8%);
--input: oklch(1 0 0 / 10%);
--ring: oklch(0.93 0.18 192);
--sidebar: oklch(0.08 0 0);
--sidebar-foreground: oklch(0.95 0 0);
--sidebar-primary: oklch(0.93 0.18 192);
--sidebar-primary-foreground: oklch(0.04 0 0);
--sidebar-accent: oklch(0.14 0 0);
--sidebar-accent-foreground: oklch(0.95 0 0);
--sidebar-border: oklch(1 0 0 / 8%);
--sidebar-ring: oklch(0.93 0.18 192);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
background-color: #000000;
}
button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
a[href],
select:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled) {
@apply cursor-pointer;
}
/* Phones & tablets: no whole-app horizontal pan / rubber-band */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
html {
overflow-x: hidden;
overscroll-behavior-x: none;
}
body {
overflow-x: hidden;
overscroll-behavior-x: none;
}
#root {
overflow-x: hidden;
width: 100%;
max-width: 100%;
}
}
}
@layer components {
.container {
width: 100%;
margin-left: auto;
margin-right: auto;
padding-left: 1rem;
padding-right: 1rem;
}
.flex {
min-height: 0;
min-width: 0;
}
@media (min-width: 640px) {
.container {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
}
@media (min-width: 1024px) {
.container {
padding-left: 2rem;
padding-right: 2rem;
max-width: 1280px;
}
}
/* ── iOS-style glass card ── */
.glass-card {
background: rgba(28, 28, 30, 0.92);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.07);
}
/* ── iOS settings list group ── */
.ios-list-group {
background: rgba(28, 28, 30, 0.92);
border-radius: 16px;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.06);
}
/* ── iOS settings row ── */
.ios-list-row {
display: flex;
align-items: center;
padding: 13px 16px;
position: relative;
transition: background 0.15s ease;
min-height: 52px;
}
.ios-list-row:active {
background: rgba(255, 255, 255, 0.05);
}
.ios-list-row + .ios-list-row::before {
content: '';
position: absolute;
top: 0;
left: 16px;
right: 0;
height: 0.5px;
background: rgba(255, 255, 255, 0.08);
}
/* ── Section header label (cyan) ── */
.ios-section-label {
font-size: 13px;
font-weight: 600;
letter-spacing: 0.04em;
color: #00FFF6;
padding: 20px 4px 8px;
text-transform: uppercase;
}
/* ── iOS-style Toggle Switch ── */
.ios-toggle {
position: relative;
display: inline-block;
width: 46px;
height: 28px;
flex-shrink: 0;
}
.ios-toggle input {
opacity: 0;
width: 0;
height: 0;
}
.ios-toggle-track {
position: absolute;
inset: 0;
border-radius: 999px;
background: rgba(120, 120, 128, 0.32);
transition: background 0.25s ease;
cursor: pointer;
}
.ios-toggle input:checked ~ .ios-toggle-track {
background: #00FFF6;
box-shadow: 0 0 12px rgba(0, 255, 246, 0.5);
}
.ios-toggle-thumb {
position: absolute;
top: 2px;
left: 2px;
width: 24px;
height: 24px;
border-radius: 50%;
background: #ffffff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
pointer-events: none;
}
.ios-toggle input:checked ~ .ios-toggle-track .ios-toggle-thumb {
transform: translateX(18px);
}
/* ── Cyan range slider ── */
.cyan-slider {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 4px;
border-radius: 2px;
background: rgba(255, 255, 255, 0.12);
outline: none;
cursor: pointer;
}
.cyan-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 17.6px;
height: 17.6px;
border-radius: 50%;
background: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
cursor: pointer;
transition: transform 0.1s ease;
}
.cyan-slider::-webkit-slider-thumb:active {
transform: scale(1.15);
}
.cyan-slider::-moz-range-thumb {
width: 17.6px;
height: 17.6px;
border-radius: 50%;
background: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
border: none;
cursor: pointer;
}
/* ── Round icon button (like the 4 quick-action circles on home) ── */
.icon-circle-btn {
width: 64px;
height: 64px;
border-radius: 50%;
background: rgba(44, 44, 46, 0.9);
border: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s ease;
cursor: pointer;
backdrop-filter: blur(10px);
}
.icon-circle-btn:active {
transform: scale(0.93);
background: rgba(60, 60, 62, 0.95);
}
.icon-circle-btn.active {
background: rgba(0, 255, 246, 0.15);
border-color: rgba(0, 255, 246, 0.4);
box-shadow: 0 0 16px rgba(0, 255, 246, 0.25);
}
/* ── Chevron right (iOS navigation arrow) ── */
.ios-chevron {
color: rgba(255, 255, 255, 0.25);
flex-shrink: 0;
margin-left: 6px;
}
/* ── Value text (right side of list row) ── */
.ios-row-value {
color: rgba(255, 255, 255, 0.4);
font-size: 15px;
margin-right: 4px;
}
/* ── Page header bar ── */
.page-header {
display: flex;
align-items: center;
padding: 16px 16px 8px;
position: sticky;
top: 0;
z-index: 10;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
/* ── Cyan volume slider with filled track ── */
.volume-slider-wrap {
position: relative;
width: 100%;
}
}
/* ── Custom scrollbar ── */
::-webkit-scrollbar {
width: 4px;
height: 4px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.12);
border-radius: 2px;
}