Files
Menu/app/globals.css
T

174 lines
4.2 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
:root {
--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--ease: cubic-bezier(0.4, 0, 0.2, 1);
--duration: 280ms;
/* Light */
--bg-base: #f2f2f7;
--fg: #1c1c1e;
--fg-secondary: #6c6c70;
--glass-bg: rgba(255, 255, 255, 0.62);
--glass-border: rgba(255, 255, 255, 0.8);
--glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
--glass-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255,255,255,0.9) inset;
--accent: #007AFF;
--accent-glow: rgba(0, 122, 255, 0.25);
--error: #FF3B30;
--success: #34C759;
--orb-1: radial-gradient(ellipse at 20% 20%, rgba(0, 122, 255, 0.15) 0%, transparent 60%);
--orb-2: radial-gradient(ellipse at 80% 80%, rgba(88, 86, 214, 0.12) 0%, transparent 60%);
--orb-3: radial-gradient(ellipse at 60% 10%, rgba(52, 199, 89, 0.08) 0%, transparent 50%);
}
[data-theme='dark'] {
--bg-base: #000000;
--fg: #f5f5f7;
--fg-secondary: #8e8e93;
--glass-bg: rgba(28, 28, 30, 0.72);
--glass-border: rgba(255, 255, 255, 0.08);
--glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
--glass-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 122, 255, 0.3);
--accent: #0A84FF;
--accent-glow: rgba(10, 132, 255, 0.35);
--error: #FF453A;
--success: #30D158;
--orb-1: radial-gradient(ellipse at 20% 20%, rgba(10, 132, 255, 0.18) 0%, transparent 60%);
--orb-2: radial-gradient(ellipse at 80% 80%, rgba(94, 92, 230, 0.18) 0%, transparent 60%);
--orb-3: radial-gradient(ellipse at 60% 10%, rgba(48, 209, 88, 0.08) 0%, transparent 50%);
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
height: 100%;
}
body {
min-height: 100vh;
background-color: var(--bg-base);
color: var(--fg);
font-family: var(--font);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
/* Ambient background orbs */
body::before {
content: '';
position: fixed;
inset: 0;
background: var(--orb-1), var(--orb-2), var(--orb-3);
pointer-events: none;
z-index: 0;
}
#__next, main {
position: relative;
z-index: 1;
}
/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
background: rgba(128, 128, 128, 0.25);
border-radius: 10px;
border: 2px solid transparent;
background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(128, 128, 128, 0.4); background-clip: padding-box; }
/* Glass utility */
.glass {
background: var(--glass-bg);
backdrop-filter: blur(24px) saturate(1.8);
-webkit-backdrop-filter: blur(24px) saturate(1.8);
border: 1px solid var(--glass-border);
box-shadow: var(--glass-shadow);
border-radius: 20px;
}
/* Page layout */
.page-container {
max-width: 1400px;
margin: 0 auto;
padding: 2rem;
min-height: 100vh;
}
/* Forms */
input[type="text"],
input[type="password"],
input[type="url"],
input[type="email"] {
width: 100%;
padding: 0.85rem 1rem;
background: var(--glass-bg);
border: 1px solid var(--glass-border);
border-radius: 12px;
color: var(--fg);
font-family: var(--font);
font-size: 0.95rem;
transition: all var(--duration) var(--ease);
backdrop-filter: blur(12px);
outline: none;
}
input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder {
color: var(--fg-secondary);
}
button {
cursor: pointer;
border: none;
outline: none;
font-family: var(--font);
transition: all var(--duration) var(--ease);
}
a {
text-decoration: none;
color: inherit;
}
/* Btn primary */
.btn-primary {
background: var(--accent);
color: white;
padding: 0.85rem 1.5rem;
border-radius: 12px;
font-size: 0.95rem;
font-weight: 600;
letter-spacing: -0.01em;
}
.btn-primary:hover {
filter: brightness(1.1);
transform: translateY(-1px);
box-shadow: 0 8px 20px var(--accent-glow);
}
.btn-primary:active {
transform: translateY(0);
}
.btn-primary:disabled {
opacity: 0.6;
pointer-events: none;
}