📦 EqualifyEverything / equalify-reflow

📄 index.css · 183 lines
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@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* Background & Foreground */
    --background: 0 0% 100%;
    --foreground: 222 47% 11%;

    /* Card colors */
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;

    /* Primary (UIC Blue) */
    --primary: 227 100% 19%;
    --primary-foreground: 0 0% 100%;

    /* Secondary */
    --secondary: 210 40% 96%;
    --secondary-foreground: 222 47% 11%;

    /* Muted */
    /* muted-foreground lightness lowered from 47% to 35% so text-muted-foreground
       clears WCAG AA at 14px (the 47% value measured ~4.46:1 on white). */
    --muted: 210 40% 96%;
    --muted-foreground: 215 20% 35%;

    /* Accent */
    --accent: 210 40% 96%;
    --accent-foreground: 222 47% 11%;

    /* Destructive (UIC Red) */
    --destructive: 350 100% 42%;
    --destructive-foreground: 0 0% 100%;

    /* Borders & Inputs */
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --ring: 227 100% 19%;

    /* Sidebar (dark theme) */
    --sidebar: 227 100% 19%;
    --sidebar-foreground: 0 0% 100%;
    --sidebar-primary: 350 100% 42%;
    --sidebar-accent: 227 100% 25%;
    --sidebar-border: 0 0% 100% / 10%;
    --sidebar-ring: 350 100% 42%;

    /* Chart colors */
    --chart-1: 227 100% 19%;
    --chart-2: 350 100% 42%;
    --chart-3: 210 40% 60%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;

    /* Border radius */
    --radius: 0.5rem;
  }

  .dark {
    /* Background & Foreground */
    --background: 222 47% 11%;
    --foreground: 210 40% 98%;

    /* Card colors */
    --card: 222 47% 14%;
    --card-foreground: 210 40% 98%;

    /* Primary (lighter blue for dark mode) */
    --primary: 217 91% 60%;
    --primary-foreground: 222 47% 11%;

    /* Secondary */
    --secondary: 217 33% 17%;
    --secondary-foreground: 210 40% 98%;

    /* Muted */
    --muted: 217 33% 17%;
    --muted-foreground: 215 20% 65%;

    /* Accent */
    --accent: 217 33% 17%;
    --accent-foreground: 210 40% 98%;

    /* Destructive (UIC Red - slightly lighter for dark) */
    --destructive: 350 89% 60%;
    --destructive-foreground: 0 0% 100%;

    /* Borders & Inputs */
    --border: 217 33% 25%;
    --input: 217 33% 25%;
    --ring: 217 91% 60%;

    /* Sidebar (keep dark theme) */
    --sidebar: 222 47% 8%;
    --sidebar-foreground: 210 40% 98%;
    --sidebar-primary: 350 89% 60%;
    --sidebar-accent: 217 33% 17%;
    --sidebar-border: 210 40% 98% / 10%;
    --sidebar-ring: 350 89% 60%;

    /* Chart colors (brighter for dark mode) */
    --chart-1: 217 91% 60%;
    --chart-2: 350 89% 60%;
    --chart-3: 210 40% 70%;
    --chart-4: 280 65% 70%;
    --chart-5: 340 75% 65%;
  }

  body {
    @apply antialiased bg-background text-foreground font-sans;
  }
}

@layer components {
  /* Demo badge - pill shaped like UIC OSF */
  .demo-badge {
    @apply bg-uic-blue text-white px-4 py-1.5 rounded-full text-xs font-bold uppercase tracking-wider;
  }

  /* Decorative blur circles (UIC OSF style) */
  .decorative-circle {
    @apply absolute rounded-full pointer-events-none;
  }

  .decorative-circle-blue {
    @apply bg-gradient-to-br from-uic-blue/10 to-transparent blur-3xl;
  }

  .decorative-circle-red {
    @apply bg-gradient-to-tr from-uic-red/10 to-transparent blur-3xl;
  }

  /* Glassmorphism nav (UIC OSF sticky nav style) */
  .glass-nav {
    @apply bg-white/90 backdrop-blur-md;
  }

  /* Section styling */
  .section-gray {
    @apply bg-gray-50;
  }

  .section-white {
    @apply bg-white;
  }

  /* Card hover effect */
  .card-interactive {
    @apply transition-all duration-300 hover:shadow-card-hover hover:scale-[1.02];
  }
}

@layer utilities {
  /* Smooth transitions */
  .transition-hover {
    @apply transition-all duration-300;
  }

  /* Text balance */
  .text-balance {
    text-wrap: balance;
  }
}

/* Prevent scroll jumping when clicking form elements (Radix UI focus handling) */
[data-radix-scroll-area-viewport] {
  overflow-anchor: none;
}

/* Add scroll margin to cards to prevent jumping when focused elements are in view */
[data-slot="card"],
.space-y-4 > * {
  scroll-margin-top: 1rem;
}

/* Prevent scroll restoration on radio/checkbox focus */
[role="radio"]:focus,
[role="checkbox"]:focus {
  scroll-margin-top: 100px;
}