Spaces:
Running
Running
File size: 4,660 Bytes
f7cecf3 052f3f2 f7cecf3 052f3f2 14b6654 6e5220d 80ac556 6e5220d 80ac556 6e5220d 80ac556 6e5220d 80ac556 24bb13e 6e5220d | 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 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | @tailwind base;
@tailwind components;
@tailwind utilities;
/* Z-Index System - Organized hierarchy */
:root {
--z-base: 0;
--z-dropdown: 100;
--z-sticky: 200;
--z-fixed: 300;
--z-modal-backdrop: 400;
--z-modal: 500;
--z-popover: 600;
--z-tooltip: 700;
--z-notification: 800;
--z-critical: 9999;
}
/* Z-Index utility classes */
.z-base { z-index: var(--z-base); }
.z-dropdown { z-index: var(--z-dropdown); }
.z-sticky { z-index: var(--z-sticky); }
.z-fixed { z-index: var(--z-fixed); }
.z-modal-backdrop { z-index: var(--z-modal-backdrop); }
.z-modal { z-index: var(--z-modal); }
.z-popover { z-index: var(--z-popover); }
.z-tooltip { z-index: var(--z-tooltip); }
.z-notification { z-index: var(--z-notification); }
.z-critical { z-index: var(--z-critical); }
@keyframes solve-indeterminate {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(400%);
}
}
@keyframes transfer-glow {
0%,
100% {
box-shadow:
0 0 16px rgba(34, 211, 238, 0.35),
0 0 36px rgba(16, 185, 129, 0.2),
inset 0 0 14px rgba(6, 182, 212, 0.12);
}
50% {
box-shadow:
0 0 28px rgba(34, 211, 238, 0.55),
0 0 52px rgba(139, 92, 246, 0.18),
inset 0 0 22px rgba(16, 185, 129, 0.18);
}
}
/* βββ Global Smoothness βββ */
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* { -webkit-tap-highlight-color: transparent; }
/* Tabular nums: all digits same width β no layout shift on number changes */
.tabular-nums { font-variant-numeric: tabular-nums; }
/* Skeleton loading pulse */
@keyframes skeleton-pulse {
0%, 100% { opacity: 0.12; }
50% { opacity: 0.28; }
}
.skeleton-pulse {
animation: skeleton-pulse 1.8s ease-in-out infinite;
}
/* Slim themed scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.25); border-radius: 999px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,0.45); }
/* Hide scrollbar utility */
.hide-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
/* Accessibility improvements */
*:focus-visible {
outline: 2px solid #10b981;
outline-offset: 2px;
}
button:focus-visible, [role="button"]:focus-visible {
outline: 2px solid #10b981;
outline-offset: 2px;
border-radius: 4px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
outline: 2px solid #10b981;
outline-offset: 2px;
}
/* Skip to content link for accessibility */
.skip-to-content {
position: absolute;
top: -40px;
left: 0;
background: #10b981;
color: white;
padding: 8px;
z-index: 100;
transition: top 0.3s;
}
.skip-to-content:focus {
top: 0;
}
/* Mobile-specific improvements */
@media (max-width: 768px) {
* {
-webkit-tap-highlight-color: transparent;
}
/* Better touch targets */
button, [role="button"], input, select, textarea {
min-height: 44px;
min-width: 44px;
}
/* Small buttons exception */
.small-touch-target {
min-height: 32px;
min-width: 32px;
}
/* Better active states for touch */
button:active, [role="button"]:active {
transform: scale(0.95);
opacity: 0.8;
}
/* Improve touch feedback */
.touch-feedback {
position: relative;
overflow: hidden;
}
.touch-feedback::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255, 255, 255, 0.3);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.3s, height 0.3s;
}
.touch-feedback:active::after {
width: 200px;
height: 200px;
}
/* Better scroll momentum */
* {
-webkit-overflow-scrolling: touch;
}
/* Prevent text selection on touch */
.no-select {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
}
.fullscreen-pitch:fullscreen {
background: #0a3a2a;
display: flex;
flex-direction: column;
justify-content: flex-start;
overflow-y: auto;
height: 100vh;
width: 100vw;
border-radius: 0 !important;
border: none !important;
}
.fullscreen-pitch:-webkit-full-screen {
background: #0a3a2a;
display: flex;
flex-direction: column;
justify-content: flex-start;
overflow-y: auto;
height: 100vh;
width: 100vw;
border-radius: 0 !important;
border: none !important;
}
.touch-none {
-webkit-user-drag: none;
user-drag: none;
-webkit-touch-callout: none;
} |