appclean 1.9.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/GUI_IMPLEMENTATION_STATUS.md +143 -0
  2. package/MD_Files/INDEX.md +51 -0
  3. package/PHASE2_COMPLETION.md +281 -0
  4. package/PHASE3_COMPLETION.md +364 -0
  5. package/README.md +411 -91
  6. package/assets/logo.svg +34 -0
  7. package/dist/core/appUpdateChecker.js +12 -16
  8. package/dist/core/appUpdateChecker.js.map +1 -1
  9. package/dist/core/detector.js +14 -18
  10. package/dist/core/detector.js.map +1 -1
  11. package/dist/core/duplicateFileFinder.js +12 -19
  12. package/dist/core/duplicateFileFinder.js.map +1 -1
  13. package/dist/core/orphanedDependencyDetector.js +19 -26
  14. package/dist/core/orphanedDependencyDetector.js.map +1 -1
  15. package/dist/core/performanceOptimizer.js +6 -10
  16. package/dist/core/performanceOptimizer.js.map +1 -1
  17. package/dist/core/permissionHandler.js +21 -25
  18. package/dist/core/permissionHandler.js.map +1 -1
  19. package/dist/core/pluginSystem.js +9 -13
  20. package/dist/core/pluginSystem.js.map +1 -1
  21. package/dist/core/removalRecorder.js +12 -19
  22. package/dist/core/removalRecorder.js.map +1 -1
  23. package/dist/core/remover.js +59 -66
  24. package/dist/core/remover.js.map +1 -1
  25. package/dist/core/reportGenerator.d.ts +1 -1
  26. package/dist/core/reportGenerator.d.ts.map +1 -1
  27. package/dist/core/reportGenerator.js +27 -34
  28. package/dist/core/reportGenerator.js.map +1 -1
  29. package/dist/core/scheduledCleanup.js +23 -30
  30. package/dist/core/scheduledCleanup.js.map +1 -1
  31. package/dist/core/serviceFileDetector.js +24 -31
  32. package/dist/core/serviceFileDetector.js.map +1 -1
  33. package/dist/core/verificationModule.js +10 -14
  34. package/dist/core/verificationModule.js.map +1 -1
  35. package/dist/index.js +118 -156
  36. package/dist/index.js.map +1 -1
  37. package/dist/managers/brewManager.js +30 -37
  38. package/dist/managers/brewManager.js.map +1 -1
  39. package/dist/managers/customManager.js +23 -30
  40. package/dist/managers/customManager.js.map +1 -1
  41. package/dist/managers/linuxManager.js +29 -36
  42. package/dist/managers/linuxManager.js.map +1 -1
  43. package/dist/managers/npmManager.js +27 -34
  44. package/dist/managers/npmManager.js.map +1 -1
  45. package/dist/types/index.js +1 -2
  46. package/dist/ui/client/api/client.d.ts +24 -0
  47. package/dist/ui/client/api/client.d.ts.map +1 -0
  48. package/dist/ui/client/api/client.js +96 -0
  49. package/dist/ui/client/api/client.js.map +1 -0
  50. package/dist/ui/client/app.d.ts +7 -0
  51. package/dist/ui/client/app.d.ts.map +1 -0
  52. package/dist/ui/client/app.js +71 -0
  53. package/dist/ui/client/app.js.map +1 -0
  54. package/dist/ui/client/index.html +107 -0
  55. package/dist/ui/client/pages/appDetails.d.ts +8 -0
  56. package/dist/ui/client/pages/appDetails.d.ts.map +1 -0
  57. package/dist/ui/client/pages/appDetails.js +287 -0
  58. package/dist/ui/client/pages/appDetails.js.map +1 -0
  59. package/dist/ui/client/pages/appSearch.d.ts +2 -0
  60. package/dist/ui/client/pages/appSearch.d.ts.map +1 -0
  61. package/dist/ui/client/pages/appSearch.js +210 -0
  62. package/dist/ui/client/pages/appSearch.js.map +1 -0
  63. package/dist/ui/client/pages/dashboard.d.ts +2 -0
  64. package/dist/ui/client/pages/dashboard.d.ts.map +1 -0
  65. package/dist/ui/client/pages/dashboard.js +154 -0
  66. package/dist/ui/client/pages/dashboard.js.map +1 -0
  67. package/dist/ui/client/pages/settings.d.ts +7 -0
  68. package/dist/ui/client/pages/settings.d.ts.map +1 -0
  69. package/dist/ui/client/pages/settings.js +279 -0
  70. package/dist/ui/client/pages/settings.js.map +1 -0
  71. package/dist/ui/client/state/appStore.d.ts +38 -0
  72. package/dist/ui/client/state/appStore.d.ts.map +1 -0
  73. package/dist/ui/client/state/appStore.js +121 -0
  74. package/dist/ui/client/state/appStore.js.map +1 -0
  75. package/dist/ui/client/state/dashboardStore.d.ts +31 -0
  76. package/dist/ui/client/state/dashboardStore.d.ts.map +1 -0
  77. package/dist/ui/client/state/dashboardStore.js +70 -0
  78. package/dist/ui/client/state/dashboardStore.js.map +1 -0
  79. package/dist/ui/client/state/uiStore.d.ts +43 -0
  80. package/dist/ui/client/state/uiStore.d.ts.map +1 -0
  81. package/dist/ui/client/state/uiStore.js +109 -0
  82. package/dist/ui/client/state/uiStore.js.map +1 -0
  83. package/dist/ui/client/styles/animations.css +327 -0
  84. package/dist/ui/client/styles/base.css +214 -0
  85. package/dist/ui/client/styles/components.css +400 -0
  86. package/dist/ui/client/styles/layout.css +224 -0
  87. package/dist/ui/client/styles/variables.css +140 -0
  88. package/dist/ui/client/utils/events.d.ts +19 -0
  89. package/dist/ui/client/utils/events.d.ts.map +1 -0
  90. package/dist/ui/client/utils/events.js +54 -0
  91. package/dist/ui/client/utils/events.js.map +1 -0
  92. package/dist/ui/client/utils/formatting.d.ts +11 -0
  93. package/dist/ui/client/utils/formatting.d.ts.map +1 -0
  94. package/dist/ui/client/utils/formatting.js +104 -0
  95. package/dist/ui/client/utils/formatting.js.map +1 -0
  96. package/dist/ui/client/utils/router.d.ts +25 -0
  97. package/dist/ui/client/utils/router.d.ts.map +1 -0
  98. package/dist/ui/client/utils/router.js +90 -0
  99. package/dist/ui/client/utils/router.js.map +1 -0
  100. package/dist/ui/guiServer.d.ts +8 -5
  101. package/dist/ui/guiServer.d.ts.map +1 -1
  102. package/dist/ui/guiServer.js +137 -505
  103. package/dist/ui/guiServer.js.map +1 -1
  104. package/dist/ui/menu.js +18 -27
  105. package/dist/ui/menu.js.map +1 -1
  106. package/dist/ui/prompts.js +34 -47
  107. package/dist/ui/prompts.js.map +1 -1
  108. package/dist/ui/server/middleware/errorHandler.d.ts +19 -0
  109. package/dist/ui/server/middleware/errorHandler.d.ts.map +1 -0
  110. package/dist/ui/server/middleware/errorHandler.js +100 -0
  111. package/dist/ui/server/middleware/errorHandler.js.map +1 -0
  112. package/dist/ui/server/routes/apps.d.ts +8 -0
  113. package/dist/ui/server/routes/apps.d.ts.map +1 -0
  114. package/dist/ui/server/routes/apps.js +74 -0
  115. package/dist/ui/server/routes/apps.js.map +1 -0
  116. package/dist/ui/server/routes/dashboard.d.ts +4 -0
  117. package/dist/ui/server/routes/dashboard.d.ts.map +1 -0
  118. package/dist/ui/server/routes/dashboard.js +57 -0
  119. package/dist/ui/server/routes/dashboard.js.map +1 -0
  120. package/dist/ui/server/routes/settings.d.ts +6 -0
  121. package/dist/ui/server/routes/settings.d.ts.map +1 -0
  122. package/dist/ui/server/routes/settings.js +31 -0
  123. package/dist/ui/server/routes/settings.js.map +1 -0
  124. package/dist/ui/server/services/appService.d.ts +45 -0
  125. package/dist/ui/server/services/appService.d.ts.map +1 -0
  126. package/dist/ui/server/services/appService.js +114 -0
  127. package/dist/ui/server/services/appService.js.map +1 -0
  128. package/dist/ui/server/services/removalService.d.ts +24 -0
  129. package/dist/ui/server/services/removalService.d.ts.map +1 -0
  130. package/dist/ui/server/services/removalService.js +83 -0
  131. package/dist/ui/server/services/removalService.js.map +1 -0
  132. package/dist/utils/filesystem.js +32 -49
  133. package/dist/utils/filesystem.js.map +1 -1
  134. package/dist/utils/logger.js +9 -18
  135. package/dist/utils/logger.js.map +1 -1
  136. package/dist/utils/platform.js +10 -22
  137. package/dist/utils/platform.js.map +1 -1
  138. package/dist/utils/upgrade.js +10 -14
  139. package/dist/utils/upgrade.js.map +1 -1
  140. package/package.json +4 -2
  141. package/src/core/appUpdateChecker.ts +1 -1
  142. package/src/core/detector.ts +6 -6
  143. package/src/core/duplicateFileFinder.ts +1 -1
  144. package/src/core/orphanedDependencyDetector.ts +2 -2
  145. package/src/core/performanceOptimizer.ts +1 -1
  146. package/src/core/permissionHandler.ts +2 -2
  147. package/src/core/pluginSystem.ts +1 -1
  148. package/src/core/removalRecorder.ts +2 -2
  149. package/src/core/remover.ts +11 -11
  150. package/src/core/reportGenerator.ts +2 -2
  151. package/src/core/scheduledCleanup.ts +2 -2
  152. package/src/core/serviceFileDetector.ts +2 -2
  153. package/src/core/verificationModule.ts +2 -2
  154. package/src/index.ts +8 -8
  155. package/src/managers/brewManager.ts +3 -3
  156. package/src/managers/customManager.ts +2 -2
  157. package/src/managers/linuxManager.ts +3 -3
  158. package/src/managers/npmManager.ts +3 -3
  159. package/src/ui/client/api/client.ts +163 -0
  160. package/src/ui/client/app.ts +121 -0
  161. package/src/ui/client/index.html +107 -0
  162. package/src/ui/client/pages/appDetails.ts +356 -0
  163. package/src/ui/client/pages/appSearch.ts +270 -0
  164. package/src/ui/client/pages/dashboard.ts +189 -0
  165. package/src/ui/client/pages/settings.ts +342 -0
  166. package/src/ui/client/state/appStore.ts +169 -0
  167. package/src/ui/client/state/dashboardStore.ts +113 -0
  168. package/src/ui/client/state/uiStore.ts +166 -0
  169. package/src/ui/client/styles/animations.css +327 -0
  170. package/src/ui/client/styles/base.css +214 -0
  171. package/src/ui/client/styles/components.css +400 -0
  172. package/src/ui/client/styles/layout.css +224 -0
  173. package/src/ui/client/styles/variables.css +140 -0
  174. package/src/ui/client/utils/events.ts +74 -0
  175. package/src/ui/client/utils/formatting.ts +157 -0
  176. package/src/ui/client/utils/router.ts +161 -0
  177. package/src/ui/guiServer.ts +183 -502
  178. package/src/ui/prompts.ts +1 -1
  179. package/src/ui/server/middleware/errorHandler.ts +174 -0
  180. package/src/ui/server/routes/apps.ts +132 -0
  181. package/src/ui/server/routes/dashboard.ts +93 -0
  182. package/src/ui/server/routes/settings.ts +63 -0
  183. package/src/ui/server/services/appService.ts +184 -0
  184. package/src/ui/server/services/removalService.ts +138 -0
  185. package/src/utils/upgrade.ts +1 -1
  186. package/tsconfig.json +3 -2
  187. package/INDEX.md +0 -165
  188. /package/{ACTION_CHECKLIST.md → MD_Files/ACTION_CHECKLIST.md} +0 -0
  189. /package/{APPCLEAN_SUMMARY.md → MD_Files/APPCLEAN_SUMMARY.md} +0 -0
  190. /package/{CHANGELOG.md → MD_Files/CHANGELOG.md} +0 -0
  191. /package/{CODE_OF_CONDUCT.md → MD_Files/CODE_OF_CONDUCT.md} +0 -0
  192. /package/{CODE_REVIEW_REPORT.md → MD_Files/CODE_REVIEW_REPORT.md} +0 -0
  193. /package/{COMMUNITY_POSTS.md → MD_Files/COMMUNITY_POSTS.md} +0 -0
  194. /package/{DEPLOYMENT_GUIDE.md → MD_Files/DEPLOYMENT_GUIDE.md} +0 -0
  195. /package/{DEPLOYMENT_STATUS.md → MD_Files/DEPLOYMENT_STATUS.md} +0 -0
  196. /package/{EXECUTIVE_REPORT.md → MD_Files/EXECUTIVE_REPORT.md} +0 -0
  197. /package/{GITHUB_OPTIMIZATION.md → MD_Files/GITHUB_OPTIMIZATION.md} +0 -0
  198. /package/{MARKETING_SUMMARY.md → MD_Files/MARKETING_SUMMARY.md} +0 -0
  199. /package/{NPM_PACKAGE_OPTIMIZATION.md → MD_Files/NPM_PACKAGE_OPTIMIZATION.md} +0 -0
  200. /package/{NPM_PUBLISH.md → MD_Files/NPM_PUBLISH.md} +0 -0
  201. /package/{PROJECT_SUMMARY.txt → MD_Files/PROJECT_SUMMARY.txt} +0 -0
  202. /package/{PUBLICATION_SUCCESS_REPORT.md → MD_Files/PUBLICATION_SUCCESS_REPORT.md} +0 -0
  203. /package/{QUICKSTART.md → MD_Files/QUICKSTART.md} +0 -0
  204. /package/{SETUP_GITHUB.md → MD_Files/SETUP_GITHUB.md} +0 -0
  205. /package/{TESTING_SUMMARY.md → MD_Files/TESTING_SUMMARY.md} +0 -0
  206. /package/{setup-github.sh → MD_Files/setup-github.sh} +0 -0
@@ -0,0 +1,166 @@
1
+ /**
2
+ * UIStore - Manages UI state: active view, modals, notifications, theme
3
+ */
4
+
5
+ import { Store } from '../utils/events.js';
6
+
7
+ export type ViewType = 'dashboard' | 'apps' | 'app-details' | 'settings';
8
+ export type NotificationType = 'success' | 'error' | 'warning' | 'info';
9
+ export type ThemeType = 'light' | 'dark';
10
+
11
+ export interface Notification {
12
+ id: string;
13
+ type: NotificationType;
14
+ message: string;
15
+ duration?: number; // ms, 0 = persistent
16
+ }
17
+
18
+ export interface UIStoreState {
19
+ currentView: ViewType;
20
+ theme: ThemeType;
21
+ sidebarVisible: boolean;
22
+ isModalOpen: boolean;
23
+ modalType: string | null;
24
+ modalData: any;
25
+ notifications: Notification[];
26
+ isProcessing: boolean;
27
+ }
28
+
29
+ const INITIAL_STATE: UIStoreState = {
30
+ currentView: 'dashboard',
31
+ theme: (localStorage.getItem('theme') as ThemeType) || 'light',
32
+ sidebarVisible: true,
33
+ isModalOpen: false,
34
+ modalType: null,
35
+ modalData: null,
36
+ notifications: [],
37
+ isProcessing: false,
38
+ };
39
+
40
+ export class UIStore extends Store<UIStoreState> {
41
+ private notificationTimers: Map<string, number> = new Map();
42
+
43
+ constructor() {
44
+ super(INITIAL_STATE);
45
+ this.applyTheme(this.state.theme);
46
+ }
47
+
48
+ // Navigation
49
+ navigateTo(view: ViewType): void {
50
+ this.setState({ currentView: view });
51
+ window.location.hash = `#/${view === 'dashboard' ? '' : view}`;
52
+ }
53
+
54
+ // Sidebar
55
+ toggleSidebar(): void {
56
+ this.setState({ sidebarVisible: !this.state.sidebarVisible });
57
+ }
58
+
59
+ showSidebar(): void {
60
+ this.setState({ sidebarVisible: true });
61
+ }
62
+
63
+ hideSidebar(): void {
64
+ this.setState({ sidebarVisible: false });
65
+ }
66
+
67
+ // Modals
68
+ openModal(type: string, data?: any): void {
69
+ this.setState({
70
+ isModalOpen: true,
71
+ modalType: type,
72
+ modalData: data,
73
+ });
74
+ }
75
+
76
+ closeModal(): void {
77
+ this.setState({
78
+ isModalOpen: false,
79
+ modalType: null,
80
+ modalData: null,
81
+ });
82
+ }
83
+
84
+ // Theme
85
+ setTheme(theme: ThemeType): void {
86
+ this.setState({ theme });
87
+ this.applyTheme(theme);
88
+ localStorage.setItem('theme', theme);
89
+ }
90
+
91
+ toggleTheme(): void {
92
+ const newTheme = this.state.theme === 'light' ? 'dark' : 'light';
93
+ this.setTheme(newTheme);
94
+ }
95
+
96
+ private applyTheme(theme: ThemeType): void {
97
+ const root = document.documentElement;
98
+ if (theme === 'dark') {
99
+ document.body.classList.add('dark-mode');
100
+ } else {
101
+ document.body.classList.remove('dark-mode');
102
+ }
103
+ }
104
+
105
+ // Notifications
106
+ addNotification(notification: Omit<Notification, 'id'>): string {
107
+ const id = `notif-${Date.now()}-${Math.random()}`;
108
+ const fullNotification: Notification = { ...notification, id };
109
+
110
+ this.setState({
111
+ notifications: [...this.state.notifications, fullNotification],
112
+ });
113
+
114
+ if (notification.duration && notification.duration > 0) {
115
+ const timer = window.setTimeout(() => {
116
+ this.removeNotification(id);
117
+ }, notification.duration);
118
+ this.notificationTimers.set(id, timer);
119
+ }
120
+
121
+ return id;
122
+ }
123
+
124
+ removeNotification(id: string): void {
125
+ const timer = this.notificationTimers.get(id);
126
+ if (timer) {
127
+ clearTimeout(timer);
128
+ this.notificationTimers.delete(id);
129
+ }
130
+
131
+ this.setState({
132
+ notifications: this.state.notifications.filter((n) => n.id !== id),
133
+ });
134
+ }
135
+
136
+ // Shortcuts
137
+ showSuccess(message: string, duration = 4000): void {
138
+ this.addNotification({ type: 'success', message, duration });
139
+ }
140
+
141
+ showError(message: string, duration = 5000): void {
142
+ this.addNotification({ type: 'error', message, duration });
143
+ }
144
+
145
+ showWarning(message: string, duration = 4000): void {
146
+ this.addNotification({ type: 'warning', message, duration });
147
+ }
148
+
149
+ showInfo(message: string, duration = 3000): void {
150
+ this.addNotification({ type: 'info', message, duration });
151
+ }
152
+
153
+ // Processing state
154
+ setProcessing(isProcessing: boolean): void {
155
+ this.setState({ isProcessing });
156
+ }
157
+
158
+ clearNotifications(): void {
159
+ this.notificationTimers.forEach((timer) => clearTimeout(timer));
160
+ this.notificationTimers.clear();
161
+ this.setState({ notifications: [] });
162
+ }
163
+ }
164
+
165
+ // Export singleton instance
166
+ export const uiStore = new UIStore();
@@ -0,0 +1,327 @@
1
+ /* Animations - Keyframes and Transition Effects */
2
+
3
+ /* Fade Animations */
4
+ @keyframes fadeIn {
5
+ from {
6
+ opacity: 0;
7
+ }
8
+ to {
9
+ opacity: 1;
10
+ }
11
+ }
12
+
13
+ @keyframes fadeOut {
14
+ from {
15
+ opacity: 1;
16
+ }
17
+ to {
18
+ opacity: 0;
19
+ }
20
+ }
21
+
22
+ .fade-in {
23
+ animation: fadeIn var(--transition-normal) ease-out forwards;
24
+ }
25
+
26
+ .fade-out {
27
+ animation: fadeOut var(--transition-normal) ease-out forwards;
28
+ }
29
+
30
+ /* Slide Animations */
31
+ @keyframes slideInUp {
32
+ from {
33
+ opacity: 0;
34
+ transform: translateY(10px);
35
+ }
36
+ to {
37
+ opacity: 1;
38
+ transform: translateY(0);
39
+ }
40
+ }
41
+
42
+ @keyframes slideOutDown {
43
+ from {
44
+ opacity: 1;
45
+ transform: translateY(0);
46
+ }
47
+ to {
48
+ opacity: 0;
49
+ transform: translateY(10px);
50
+ }
51
+ }
52
+
53
+ @keyframes slideInDown {
54
+ from {
55
+ opacity: 0;
56
+ transform: translateY(-10px);
57
+ }
58
+ to {
59
+ opacity: 1;
60
+ transform: translateY(0);
61
+ }
62
+ }
63
+
64
+ @keyframes slideInLeft {
65
+ from {
66
+ opacity: 0;
67
+ transform: translateX(-10px);
68
+ }
69
+ to {
70
+ opacity: 1;
71
+ transform: translateX(0);
72
+ }
73
+ }
74
+
75
+ @keyframes slideInRight {
76
+ from {
77
+ opacity: 0;
78
+ transform: translateX(10px);
79
+ }
80
+ to {
81
+ opacity: 1;
82
+ transform: translateX(0);
83
+ }
84
+ }
85
+
86
+ .slide-in-up {
87
+ animation: slideInUp var(--transition-normal) ease-out forwards;
88
+ }
89
+
90
+ .slide-in-down {
91
+ animation: slideInDown var(--transition-normal) ease-out forwards;
92
+ }
93
+
94
+ .slide-in-left {
95
+ animation: slideInLeft var(--transition-normal) ease-out forwards;
96
+ }
97
+
98
+ .slide-in-right {
99
+ animation: slideInRight var(--transition-normal) ease-out forwards;
100
+ }
101
+
102
+ /* Spin Animation */
103
+ @keyframes spin {
104
+ from {
105
+ transform: rotate(0deg);
106
+ }
107
+ to {
108
+ transform: rotate(360deg);
109
+ }
110
+ }
111
+
112
+ .spin {
113
+ animation: spin 1s linear infinite;
114
+ }
115
+
116
+ /* Pulse Animation */
117
+ @keyframes pulse {
118
+ 0%, 100% {
119
+ opacity: 1;
120
+ }
121
+ 50% {
122
+ opacity: 0.5;
123
+ }
124
+ }
125
+
126
+ .pulse {
127
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
128
+ }
129
+
130
+ /* Scale Animation */
131
+ @keyframes scaleIn {
132
+ from {
133
+ opacity: 0;
134
+ transform: scale(0.95);
135
+ }
136
+ to {
137
+ opacity: 1;
138
+ transform: scale(1);
139
+ }
140
+ }
141
+
142
+ @keyframes scaleOut {
143
+ from {
144
+ opacity: 1;
145
+ transform: scale(1);
146
+ }
147
+ to {
148
+ opacity: 0;
149
+ transform: scale(0.95);
150
+ }
151
+ }
152
+
153
+ .scale-in {
154
+ animation: scaleIn var(--transition-normal) ease-out forwards;
155
+ }
156
+
157
+ .scale-out {
158
+ animation: scaleOut var(--transition-normal) ease-out forwards;
159
+ }
160
+
161
+ /* Bounce Animation */
162
+ @keyframes bounce {
163
+ 0%, 100% {
164
+ transform: translateY(0);
165
+ }
166
+ 50% {
167
+ transform: translateY(-10px);
168
+ }
169
+ }
170
+
171
+ .bounce {
172
+ animation: bounce 1s ease-in-out infinite;
173
+ }
174
+
175
+ /* Wiggle Animation */
176
+ @keyframes wiggle {
177
+ 0%, 100% {
178
+ transform: translateX(0);
179
+ }
180
+ 25% {
181
+ transform: translateX(-2px);
182
+ }
183
+ 75% {
184
+ transform: translateX(2px);
185
+ }
186
+ }
187
+
188
+ .wiggle {
189
+ animation: wiggle 0.5s ease-in-out;
190
+ }
191
+
192
+ /* Skeleton Loading */
193
+ @keyframes shimmer {
194
+ 0% {
195
+ background-position: -1000px 0;
196
+ }
197
+ 100% {
198
+ background-position: 1000px 0;
199
+ }
200
+ }
201
+
202
+ .skeleton {
203
+ background: linear-gradient(
204
+ 90deg,
205
+ var(--bg-secondary) 0%,
206
+ var(--bg-hover) 50%,
207
+ var(--bg-secondary) 100%
208
+ );
209
+ background-size: 200% 100%;
210
+ animation: shimmer 2s infinite;
211
+ border-radius: var(--radius-md);
212
+ }
213
+
214
+ /* Page Transitions */
215
+ .page-enter {
216
+ animation: slideInUp var(--transition-normal) ease-out;
217
+ }
218
+
219
+ .page-exit {
220
+ animation: slideOutDown var(--transition-normal) ease-out;
221
+ }
222
+
223
+ /* Loading Spinner Variants */
224
+ .spinner {
225
+ display: inline-block;
226
+ width: 20px;
227
+ height: 20px;
228
+ border: 3px solid var(--bg-secondary);
229
+ border-top-color: var(--color-primary);
230
+ border-radius: 50%;
231
+ animation: spin 1s linear infinite;
232
+ }
233
+
234
+ .spinner-sm {
235
+ width: 16px;
236
+ height: 16px;
237
+ border-width: 2px;
238
+ }
239
+
240
+ .spinner-lg {
241
+ width: 32px;
242
+ height: 32px;
243
+ border-width: 4px;
244
+ }
245
+
246
+ .spinner-white {
247
+ border-color: rgba(255, 255, 255, 0.3);
248
+ border-top-color: white;
249
+ }
250
+
251
+ /* Transition Utilities */
252
+ .transition-all {
253
+ transition: all var(--transition-normal);
254
+ }
255
+
256
+ .transition-colors {
257
+ transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
258
+ }
259
+
260
+ .transition-transform {
261
+ transition: transform var(--transition-fast);
262
+ }
263
+
264
+ .transition-opacity {
265
+ transition: opacity var(--transition-fast);
266
+ }
267
+
268
+ /* Hover Effects */
269
+ .hover-lift:hover {
270
+ transform: translateY(-4px);
271
+ box-shadow: var(--shadow-lg);
272
+ }
273
+
274
+ .hover-scale:hover {
275
+ transform: scale(1.05);
276
+ }
277
+
278
+ .hover-glow:hover {
279
+ box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
280
+ }
281
+
282
+ /* Focus Visible */
283
+ :focus-visible {
284
+ outline: 2px solid var(--color-primary);
285
+ outline-offset: 2px;
286
+ }
287
+
288
+ button:focus-visible {
289
+ outline-offset: -2px;
290
+ }
291
+
292
+ /* Disabled State */
293
+ [disabled] {
294
+ opacity: 0.5;
295
+ cursor: not-allowed;
296
+ }
297
+
298
+ /* Active State */
299
+ .active {
300
+ opacity: 1;
301
+ }
302
+
303
+ /* Error Shake */
304
+ @keyframes shake {
305
+ 0%, 100% {
306
+ transform: translateX(0);
307
+ }
308
+ 10%, 30%, 50%, 70%, 90% {
309
+ transform: translateX(-4px);
310
+ }
311
+ 20%, 40%, 60%, 80% {
312
+ transform: translateX(4px);
313
+ }
314
+ }
315
+
316
+ .shake {
317
+ animation: shake 0.5s ease-in-out;
318
+ }
319
+
320
+ /* Smooth Transitions for Theme Toggle */
321
+ body {
322
+ transition: background-color var(--transition-normal), color var(--transition-normal);
323
+ }
324
+
325
+ * {
326
+ transition: background-color var(--transition-normal), border-color var(--transition-normal);
327
+ }
@@ -0,0 +1,214 @@
1
+ /* Base Styles - Typography, Reset, Global Styles */
2
+
3
+ * {
4
+ margin: 0;
5
+ padding: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ html {
10
+ font-size: 16px;
11
+ -webkit-font-smoothing: antialiased;
12
+ -moz-osx-font-smoothing: grayscale;
13
+ }
14
+
15
+ body {
16
+ font-family: var(--font-family);
17
+ font-size: var(--font-base);
18
+ line-height: var(--lh-normal);
19
+ color: var(--text-primary);
20
+ background-color: var(--bg-primary);
21
+ transition: background-color var(--transition-normal), color var(--transition-normal);
22
+ overflow-x: hidden;
23
+ }
24
+
25
+ /* Typography */
26
+ h1 {
27
+ font-size: var(--font-3xl);
28
+ font-weight: var(--fw-bold);
29
+ line-height: var(--lh-tight);
30
+ margin-bottom: var(--space-4);
31
+ letter-spacing: -0.5px;
32
+ }
33
+
34
+ h2 {
35
+ font-size: var(--font-2xl);
36
+ font-weight: var(--fw-bold);
37
+ line-height: var(--lh-tight);
38
+ margin-bottom: var(--space-3);
39
+ letter-spacing: -0.3px;
40
+ }
41
+
42
+ h3 {
43
+ font-size: var(--font-xl);
44
+ font-weight: var(--fw-semibold);
45
+ line-height: var(--lh-normal);
46
+ margin-bottom: var(--space-2);
47
+ }
48
+
49
+ h4 {
50
+ font-size: var(--font-lg);
51
+ font-weight: var(--fw-semibold);
52
+ line-height: var(--lh-normal);
53
+ margin-bottom: var(--space-2);
54
+ }
55
+
56
+ h5 {
57
+ font-size: var(--font-base);
58
+ font-weight: var(--fw-semibold);
59
+ line-height: var(--lh-normal);
60
+ margin-bottom: var(--space-1);
61
+ }
62
+
63
+ h6 {
64
+ font-size: var(--font-sm);
65
+ font-weight: var(--fw-semibold);
66
+ line-height: var(--lh-normal);
67
+ margin-bottom: var(--space-1);
68
+ }
69
+
70
+ p {
71
+ margin-bottom: var(--space-4);
72
+ color: var(--text-secondary);
73
+ line-height: var(--lh-relaxed);
74
+ }
75
+
76
+ p:last-child {
77
+ margin-bottom: 0;
78
+ }
79
+
80
+ a {
81
+ color: var(--color-primary);
82
+ text-decoration: none;
83
+ transition: color var(--transition-fast);
84
+ }
85
+
86
+ a:hover {
87
+ color: var(--color-primary-hover);
88
+ text-decoration: underline;
89
+ }
90
+
91
+ code {
92
+ font-family: var(--font-family-mono);
93
+ font-size: 0.9em;
94
+ background-color: var(--bg-secondary);
95
+ border-radius: var(--radius-sm);
96
+ padding: var(--space-1) var(--space-2);
97
+ color: var(--color-danger);
98
+ }
99
+
100
+ pre {
101
+ background-color: var(--bg-secondary);
102
+ border: 1px solid var(--border-color);
103
+ border-radius: var(--radius-lg);
104
+ padding: var(--space-4);
105
+ overflow-x: auto;
106
+ font-family: var(--font-family-mono);
107
+ font-size: var(--font-sm);
108
+ line-height: var(--lh-normal);
109
+ margin-bottom: var(--space-4);
110
+ }
111
+
112
+ pre code {
113
+ background-color: transparent;
114
+ border-radius: 0;
115
+ padding: 0;
116
+ color: var(--text-primary);
117
+ }
118
+
119
+ /* Lists */
120
+ ul,
121
+ ol {
122
+ margin-bottom: var(--space-4);
123
+ margin-left: var(--space-6);
124
+ }
125
+
126
+ li {
127
+ margin-bottom: var(--space-2);
128
+ }
129
+
130
+ /* Tables */
131
+ table {
132
+ width: 100%;
133
+ border-collapse: collapse;
134
+ margin-bottom: var(--space-4);
135
+ }
136
+
137
+ thead {
138
+ background-color: var(--bg-secondary);
139
+ border-bottom: 2px solid var(--border-color);
140
+ }
141
+
142
+ th {
143
+ padding: var(--space-3) var(--space-4);
144
+ text-align: left;
145
+ font-weight: var(--fw-semibold);
146
+ color: var(--text-primary);
147
+ }
148
+
149
+ td {
150
+ padding: var(--space-3) var(--space-4);
151
+ border-bottom: 1px solid var(--border-color);
152
+ color: var(--text-secondary);
153
+ }
154
+
155
+ tbody tr:hover {
156
+ background-color: var(--bg-secondary);
157
+ }
158
+
159
+ /* Forms */
160
+ input,
161
+ textarea,
162
+ select {
163
+ font-family: var(--font-family);
164
+ font-size: var(--font-base);
165
+ width: 100%;
166
+ padding: var(--space-2) var(--space-3);
167
+ border: 1px solid var(--border-color);
168
+ border-radius: var(--radius-md);
169
+ background-color: var(--bg-primary);
170
+ color: var(--text-primary);
171
+ transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
172
+ }
173
+
174
+ input:focus,
175
+ textarea:focus,
176
+ select:focus {
177
+ outline: none;
178
+ border-color: var(--color-primary);
179
+ box-shadow: 0 0 0 3px var(--color-primary-light);
180
+ }
181
+
182
+ input:disabled,
183
+ textarea:disabled,
184
+ select:disabled {
185
+ background-color: var(--bg-secondary);
186
+ color: var(--text-muted);
187
+ cursor: not-allowed;
188
+ opacity: 0.5;
189
+ }
190
+
191
+ label {
192
+ display: block;
193
+ margin-bottom: var(--space-2);
194
+ font-weight: var(--fw-medium);
195
+ color: var(--text-primary);
196
+ font-size: var(--font-sm);
197
+ }
198
+
199
+ /* Utilities */
200
+ .visually-hidden {
201
+ position: absolute;
202
+ width: 1px;
203
+ height: 1px;
204
+ padding: 0;
205
+ margin: -1px;
206
+ overflow: hidden;
207
+ clip: rect(0, 0, 0, 0);
208
+ white-space: nowrap;
209
+ border-width: 0;
210
+ }
211
+
212
+ .no-scroll {
213
+ overflow: hidden;
214
+ }