File size: 4,638 Bytes
495085a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | /* ========== MATERIAL DESIGN VARIABLES ========== */
:root {
/* Color Palette - Google Material */
--md-primary: #1A73E8;
--md-primary-dark: #1557B0;
--md-primary-light: #4285F4;
--md-surface: #FFFFFF;
--md-background: #F8F9FA;
--md-on-surface: #202124;
--md-on-surface-variant: #5F6368;
--md-outline: #DADCE0;
--md-success: #1E8E3E;
--md-warning: #F9AB00;
--md-error: #D93025;
/* Elevation Shadows - Material Design */
--md-elevation-0: none;
--md-elevation-1: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
--md-elevation-2: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
--md-elevation-3: 0 4px 8px 3px rgba(60,64,67,.15), 0 1px 3px rgba(60,64,67,.3);
--md-elevation-4: 0 6px 10px 4px rgba(60,64,67,.15), 0 2px 3px rgba(60,64,67,.3);
/* Spacing System */
--spacing-xs: 4px;
--spacing-sm: 8px;
--spacing-md: 16px;
--spacing-lg: 24px;
--spacing-xl: 32px;
--spacing-2xl: 48px;
/* Border Radius */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-full: 9999px;
/* Transitions - Material Motion */
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
/* Typography */
--font-sans: 'Inter', 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
/* ========== GLOBAL RESET & FOUNDATION ========== */
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body, html, [class*="css"] {
font-family: var(--font-sans);
color: var(--md-on-surface);
background-color: var(--md-background);
}
/* ========== BUTTONS - MATERIAL DESIGN ========== */
.stButton > button {
background: var(--md-primary) !important;
color: white !important;
border: none !important;
border-radius: var(--radius-md) !important;
padding: 10px 24px !important;
font-weight: 500 !important;
font-size: 14px !important;
letter-spacing: 0.25px !important;
box-shadow: var(--md-elevation-2) !important;
transition: all var(--transition-fast) !important;
min-height: 44px !important;
}
.stButton > button:hover {
background: var(--md-primary-dark) !important;
box-shadow: var(--md-elevation-3) !important;
transform: translateY(-1px);
}
.stButton > button:active {
transform: translateY(0);
box-shadow: var(--md-elevation-1) !important;
}
/* Touch-friendly on mobile */
@media (max-width: 768px) {
.stButton > button {
min-height: 48px !important;
padding: 12px 24px !important;
font-size: 16px !important;
}
body {
font-size: 16px; /* Prevents iOS zoom */
}
}
/* ========== SMOOTH ANIMATIONS ========== */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideInRight {
from {
transform: translateX(20px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* ========== SCROLLBAR STYLING ========== */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--md-background);
}
::-webkit-scrollbar-thumb {
background: var(--md-outline);
border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
background: var(--md-on-surface-variant);
}
/* ========== RESPONSIVE TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
font-weight: 500;
color: var(--md-on-surface);
}
h1 { font-size: 32px; line-height: 40px; }
h2 { font-size: 24px; line-height: 32px; }
h3 { font-size: 20px; line-height: 28px; }
@media (max-width: 768px) {
h1 { font-size: 24px; line-height: 32px; }
h2 { font-size: 20px; line-height: 28px; }
h3 { font-size: 18px; line-height: 24px; }
}
/* ========== TRANSITIONS FOR INTERACTIVE ELEMENTS ========== */
button, a, input, textarea, select, [role="button"] {
transition: all var(--transition-fast);
}
/* ========== MOBILE TAP TARGETS ========== */
@media (max-width: 768px) {
button, a, [role="button"] {
min-height: 44px;
min-width: 44px;
}
}
/* ========== ACCESSIBILITY ========== */
*:focus-visible {
outline: 2px solid var(--md-primary);
outline-offset: 2px;
}
|