Sys-Arc-Visl/src/styles/ui.css

419 lines
No EOL
8.9 KiB
CSS

/* ============================================
Core UI Components - Theme Aware
============================================ */
/* Glass Panel - Frosted glass effect */
.glass-panel {
background: var(--bg-surface);
backdrop-filter: var(--glass-blur) var(--glass-saturate);
-webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
border: 1px solid var(--glass-border);
border-radius: 1rem;
}
/* Floating Glass - More prominent glass effect */
.floating-glass {
background: var(--bg-panel);
backdrop-filter: var(--glass-blur) var(--glass-saturate);
-webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
border: 1px solid var(--glass-border);
box-shadow:
0 8px 32px -4px rgba(0, 0, 0, 0.15),
inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
/* Titanium Border - Subtle metallic border */
.titanium-border {
border: 1px solid var(--glass-border);
}
/* ============================================
Button Hierarchy
============================================ */
/* Primary Button - Main CTA */
.btn-primary {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
padding: 0.75rem 2rem;
border-radius: 1rem;
font-size: 0.6875rem;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 0.15em;
background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo));
color: white;
border: none;
box-shadow:
0 8px 24px -8px rgba(59, 130, 246, 0.5),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
transition: all var(--transition-base);
position: relative;
overflow: hidden;
}
.btn-primary::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
opacity: 0;
transition: opacity var(--transition-fast);
}
.btn-primary:hover::before {
opacity: 1;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow:
0 12px 32px -8px rgba(59, 130, 246, 0.6),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:active {
transform: translateY(0) scale(0.98);
}
.btn-primary:disabled {
opacity: 0.3;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
/* Secondary Button */
.btn-secondary {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
padding: 0.75rem 2rem;
border-radius: 1rem;
font-size: 0.6875rem;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 0.15em;
background: var(--bg-surface);
color: var(--text-secondary);
border: 1px solid var(--glass-border);
transition: all var(--transition-base);
}
.btn-secondary:hover {
background: var(--interactive-hover);
color: var(--text-primary);
border-color: var(--brand-blue);
}
.btn-secondary:active {
transform: scale(0.98);
}
/* Ghost Button - Minimal style */
.btn-ghost {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
border-radius: 0.75rem;
font-size: 0.625rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
background: transparent;
color: var(--text-secondary);
border: 1px solid transparent;
transition: all var(--transition-base);
}
.btn-ghost:hover {
background: var(--interactive-hover);
color: var(--text-primary);
}
.btn-ghost.active {
background: rgba(59, 130, 246, 0.1);
color: var(--brand-blue);
border-color: rgba(59, 130, 246, 0.2);
}
/* Icon Button - Square icon-only button */
.btn-icon {
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border-radius: 0.75rem;
background: var(--bg-surface);
color: var(--text-secondary);
border: 1px solid var(--glass-border);
transition: all var(--transition-fast);
}
.btn-icon:hover {
background: var(--interactive-hover);
color: var(--text-primary);
transform: scale(1.05);
}
.btn-icon.active {
background: var(--brand-blue);
color: white;
border-color: var(--brand-blue);
}
/* ============================================
Animations
============================================ */
@keyframes slide-up {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-slide-up {
animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pulse-glow {
0%,
100% {
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
}
50% {
box-shadow: 0 0 20px 4px rgba(59, 130, 246, 0.2);
}
}
.animate-pulse-glow {
animation: pulse-glow 2s ease-in-out infinite;
}
/* ============================================
Scrollbar Styling
============================================ */
/* Hide scrollbars by default */
.hide-scrollbar {
scrollbar-width: none;
-ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
/* Custom scrollbar for when visible */
.custom-scrollbar {
scrollbar-width: thin;
scrollbar-color: var(--void-700) transparent;
}
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: var(--void-700);
border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: var(--void-600);
}
/* ============================================
Form Elements
============================================ */
.input-base {
width: 100%;
padding: 0.75rem 1rem;
border-radius: 0.75rem;
background: var(--bg-void);
border: 1px solid var(--glass-border);
color: var(--text-primary);
font-size: 0.875rem;
transition: all var(--transition-fast);
}
.input-base:focus {
outline: none;
border-color: var(--brand-blue);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.input-base::placeholder {
color: var(--text-tertiary);
}
/* ============================================
Tooltip Styles
============================================ */
.tooltip {
position: relative;
}
.tooltip::after {
content: attr(data-tooltip);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%) translateY(-4px);
padding: 0.375rem 0.75rem;
background: var(--void-800);
color: var(--text-primary);
font-size: 0.6875rem;
font-weight: 600;
white-space: nowrap;
border-radius: 0.5rem;
opacity: 0;
visibility: hidden;
transition: all var(--transition-fast);
z-index: 100;
}
.tooltip:hover::after {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(-8px);
}
/* ============================================
Badge Styles
============================================ */
.badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.5rem;
border-radius: 0.375rem;
font-size: 0.625rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.badge-blue {
background: rgba(59, 130, 246, 0.15);
color: #3b82f6;
}
.badge-green {
background: rgba(16, 185, 129, 0.15);
color: #10b981;
}
.badge-amber {
background: rgba(245, 158, 11, 0.15);
color: #f59e0b;
}
.badge-red {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
.badge-purple {
background: rgba(139, 92, 246, 0.15);
color: #8b5cf6;
}
/* ============================================
Mobile Touch Target Sizes
Ensure minimum 44x44px for accessibility
============================================ */
@media (max-width: 768px) {
/* Increase button touch targets on mobile */
.btn-icon {
min-width: 44px;
min-height: 44px;
width: 2.75rem;
height: 2.75rem;
}
.btn-primary,
.btn-secondary {
min-height: 48px;
padding: 1rem 1.5rem;
}
.btn-ghost {
min-height: 44px;
padding: 0.75rem 1rem;
}
/* Toolbar and panel buttons */
.glass-panel button {
min-height: 44px;
min-width: 44px;
}
/* Form inputs */
.input-base {
min-height: 48px;
font-size: 1rem; /* Prevent zoom on iOS */
}
/* Tabs and navigation items */
button[role="tab"],
nav button,
nav a {
min-height: 44px;
min-width: 44px;
}
}
/* Mobile-specific animation for bottom sheet */
@keyframes slide-up-sheet {
from {
opacity: 0;
transform: translateY(100%);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.animate-slide-up {
animation: slide-up-sheet 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
}
/* Fade in animation */
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.animate-fade-in {
animation: fade-in 0.2s ease-out forwards;
}