385 lines
7.4 KiB
CSS
385 lines
7.4 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
/* Light mode colors */
|
|
--bg-primary: #f0f4f8;
|
|
--bg-gradient-start: #667eea;
|
|
--bg-gradient-end: #764ba2;
|
|
--glass-bg: rgba(255, 255, 255, 0.25);
|
|
--glass-border: rgba(255, 255, 255, 0.4);
|
|
--text-primary: #2d3748;
|
|
--text-secondary: #4a5568;
|
|
--text-tertiary: #718096;
|
|
--accent-primary: #4c51bf;
|
|
--accent-secondary: #5a3d7a;
|
|
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
|
|
--input-bg: rgba(255, 255, 255, 0.6);
|
|
--input-border: rgba(255, 255, 255, 0.5);
|
|
--button-hover: rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
--bg-primary: #1a202c;
|
|
--bg-gradient-start: #2d3748;
|
|
--bg-gradient-end: #1a202c;
|
|
--glass-bg: rgba(45, 55, 72, 0.4);
|
|
--glass-border: rgba(255, 255, 255, 0.1);
|
|
--text-primary: #f7fafc;
|
|
--text-secondary: #e2e8f0;
|
|
--text-tertiary: #cbd5e0;
|
|
--accent-primary: #667eea;
|
|
--accent-secondary: #764ba2;
|
|
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
--input-bg: rgba(45, 55, 72, 0.6);
|
|
--input-border: rgba(255, 255, 255, 0.15);
|
|
--button-hover: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
|
|
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
|
|
sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
background: linear-gradient(
|
|
135deg,
|
|
var(--bg-gradient-start) 0%,
|
|
var(--bg-gradient-end) 100%
|
|
);
|
|
min-height: 100vh;
|
|
color: var(--text-primary);
|
|
overflow-x: hidden;
|
|
transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* Animated background pattern */
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: radial-gradient(
|
|
circle at 20% 50%,
|
|
rgba(255, 255, 255, 0.1) 0%,
|
|
transparent 50%
|
|
),
|
|
radial-gradient(
|
|
circle at 80% 80%,
|
|
rgba(255, 255, 255, 0.08) 0%,
|
|
transparent 50%
|
|
),
|
|
radial-gradient(
|
|
circle at 40% 20%,
|
|
rgba(255, 255, 255, 0.06) 0%,
|
|
transparent 50%
|
|
);
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
#root {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Glass card style */
|
|
.glass-card {
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: 24px;
|
|
box-shadow: var(--shadow-lg);
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.glass-card:hover {
|
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Input styles */
|
|
input,
|
|
textarea,
|
|
select {
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 12px;
|
|
padding: 12px 16px;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
font-family: inherit;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
width: 100%;
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus,
|
|
select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
input::placeholder,
|
|
textarea::placeholder {
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
/* Button styles */
|
|
button {
|
|
background: linear-gradient(
|
|
135deg,
|
|
var(--accent-primary) 0%,
|
|
var(--accent-secondary) 100%
|
|
);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 12px;
|
|
padding: 12px 24px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: var(--shadow-md);
|
|
font-family: inherit;
|
|
}
|
|
|
|
button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
/* Secondary button */
|
|
.button-secondary {
|
|
background: var(--glass-bg);
|
|
color: var(--text-primary);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
border: 1px solid var(--glass-border);
|
|
}
|
|
|
|
.button-secondary:hover {
|
|
background: var(--button-hover);
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 10px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: rgba(0, 0, 0, 0.1);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: rgba(102, 126, 234, 0.5);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(102, 126, 234, 0.7);
|
|
}
|
|
|
|
/* Fade in animation */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes fadeInScale {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.fade-in {
|
|
animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.fade-in-scale {
|
|
animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* Label styles */
|
|
label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 8px;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
/* Range input */
|
|
input[type="range"] {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
height: 6px;
|
|
background: var(--input-bg);
|
|
border-radius: 3px;
|
|
padding: 0;
|
|
}
|
|
|
|
input[type="range"]::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
background: linear-gradient(
|
|
135deg,
|
|
var(--accent-primary) 0%,
|
|
var(--accent-secondary) 100%
|
|
);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
input[type="range"]::-webkit-slider-thumb:hover {
|
|
transform: scale(1.2);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
input[type="range"]::-moz-range-thumb {
|
|
width: 18px;
|
|
height: 18px;
|
|
background: linear-gradient(
|
|
135deg,
|
|
var(--accent-primary) 0%,
|
|
var(--accent-secondary) 100%
|
|
);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: none;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
input[type="range"]::-moz-range-thumb:hover {
|
|
transform: scale(1.2);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
/* Color input */
|
|
input[type="color"] {
|
|
height: 48px;
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type="color"]::-webkit-color-swatch-wrapper {
|
|
padding: 0;
|
|
}
|
|
|
|
input[type="color"]::-webkit-color-swatch {
|
|
border-radius: 8px;
|
|
border: none;
|
|
}
|
|
|
|
/* Toggle switch */
|
|
.toggle-switch {
|
|
position: relative;
|
|
width: 52px;
|
|
height: 28px;
|
|
background: var(--input-bg);
|
|
border-radius: 14px;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
border: 1px solid var(--input-border);
|
|
}
|
|
|
|
.toggle-switch.active {
|
|
background: linear-gradient(
|
|
135deg,
|
|
var(--accent-primary) 0%,
|
|
var(--accent-secondary) 100%
|
|
);
|
|
}
|
|
|
|
.toggle-switch::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.toggle-switch.active::after {
|
|
transform: translateX(24px);
|
|
}
|
|
|
|
/* Utility classes */
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.mb-1 {
|
|
margin-bottom: 8px;
|
|
}
|
|
.mb-2 {
|
|
margin-bottom: 16px;
|
|
}
|
|
.mb-3 {
|
|
margin-bottom: 24px;
|
|
}
|
|
.mb-4 {
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.mt-1 {
|
|
margin-top: 8px;
|
|
}
|
|
.mt-2 {
|
|
margin-top: 16px;
|
|
}
|
|
.mt-3 {
|
|
margin-top: 24px;
|
|
}
|
|
.mt-4 {
|
|
margin-top: 32px;
|
|
}
|