appclean 1.9.0 → 2.0.2

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 (212) hide show
  1. package/.github/workflows/npm-publish.yml +61 -0
  2. package/DEVELOPMENT.md +84 -0
  3. package/GUI_IMPLEMENTATION_STATUS.md +143 -0
  4. package/MD_Files/INDEX.md +51 -0
  5. package/PHASE2_COMPLETION.md +281 -0
  6. package/PHASE3_COMPLETION.md +364 -0
  7. package/README.md +411 -91
  8. package/RELEASE_GUIDE.md +236 -0
  9. package/assets/logo.svg +34 -0
  10. package/dist/core/appUpdateChecker.js +12 -16
  11. package/dist/core/appUpdateChecker.js.map +1 -1
  12. package/dist/core/detector.js +14 -18
  13. package/dist/core/detector.js.map +1 -1
  14. package/dist/core/duplicateFileFinder.js +12 -19
  15. package/dist/core/duplicateFileFinder.js.map +1 -1
  16. package/dist/core/orphanedDependencyDetector.js +19 -26
  17. package/dist/core/orphanedDependencyDetector.js.map +1 -1
  18. package/dist/core/performanceOptimizer.js +6 -10
  19. package/dist/core/performanceOptimizer.js.map +1 -1
  20. package/dist/core/permissionHandler.js +21 -25
  21. package/dist/core/permissionHandler.js.map +1 -1
  22. package/dist/core/pluginSystem.js +9 -13
  23. package/dist/core/pluginSystem.js.map +1 -1
  24. package/dist/core/removalRecorder.js +12 -19
  25. package/dist/core/removalRecorder.js.map +1 -1
  26. package/dist/core/remover.js +59 -66
  27. package/dist/core/remover.js.map +1 -1
  28. package/dist/core/reportGenerator.d.ts +1 -1
  29. package/dist/core/reportGenerator.d.ts.map +1 -1
  30. package/dist/core/reportGenerator.js +27 -34
  31. package/dist/core/reportGenerator.js.map +1 -1
  32. package/dist/core/scheduledCleanup.js +23 -30
  33. package/dist/core/scheduledCleanup.js.map +1 -1
  34. package/dist/core/serviceFileDetector.js +24 -31
  35. package/dist/core/serviceFileDetector.js.map +1 -1
  36. package/dist/core/verificationModule.js +10 -14
  37. package/dist/core/verificationModule.js.map +1 -1
  38. package/dist/index.js +118 -156
  39. package/dist/index.js.map +1 -1
  40. package/dist/managers/brewManager.js +30 -37
  41. package/dist/managers/brewManager.js.map +1 -1
  42. package/dist/managers/customManager.js +23 -30
  43. package/dist/managers/customManager.js.map +1 -1
  44. package/dist/managers/linuxManager.js +29 -36
  45. package/dist/managers/linuxManager.js.map +1 -1
  46. package/dist/managers/npmManager.js +27 -34
  47. package/dist/managers/npmManager.js.map +1 -1
  48. package/dist/types/index.js +1 -2
  49. package/dist/ui/client/api/client.d.ts +24 -0
  50. package/dist/ui/client/api/client.d.ts.map +1 -0
  51. package/dist/ui/client/api/client.js +100 -0
  52. package/dist/ui/client/api/client.js.map +1 -0
  53. package/dist/ui/client/app.d.ts +7 -0
  54. package/dist/ui/client/app.d.ts.map +1 -0
  55. package/dist/ui/client/app.js +75 -0
  56. package/dist/ui/client/app.js.map +1 -0
  57. package/dist/ui/client/index.html +107 -0
  58. package/dist/ui/client/pages/appDetails.d.ts +8 -0
  59. package/dist/ui/client/pages/appDetails.d.ts.map +1 -0
  60. package/dist/ui/client/pages/appDetails.js +287 -0
  61. package/dist/ui/client/pages/appDetails.js.map +1 -0
  62. package/dist/ui/client/pages/appSearch.d.ts +2 -0
  63. package/dist/ui/client/pages/appSearch.d.ts.map +1 -0
  64. package/dist/ui/client/pages/appSearch.js +221 -0
  65. package/dist/ui/client/pages/appSearch.js.map +1 -0
  66. package/dist/ui/client/pages/dashboard.d.ts +2 -0
  67. package/dist/ui/client/pages/dashboard.d.ts.map +1 -0
  68. package/dist/ui/client/pages/dashboard.js +175 -0
  69. package/dist/ui/client/pages/dashboard.js.map +1 -0
  70. package/dist/ui/client/pages/settings.d.ts +7 -0
  71. package/dist/ui/client/pages/settings.d.ts.map +1 -0
  72. package/dist/ui/client/pages/settings.js +279 -0
  73. package/dist/ui/client/pages/settings.js.map +1 -0
  74. package/dist/ui/client/state/appStore.d.ts +38 -0
  75. package/dist/ui/client/state/appStore.d.ts.map +1 -0
  76. package/dist/ui/client/state/appStore.js +130 -0
  77. package/dist/ui/client/state/appStore.js.map +1 -0
  78. package/dist/ui/client/state/dashboardStore.d.ts +31 -0
  79. package/dist/ui/client/state/dashboardStore.d.ts.map +1 -0
  80. package/dist/ui/client/state/dashboardStore.js +76 -0
  81. package/dist/ui/client/state/dashboardStore.js.map +1 -0
  82. package/dist/ui/client/state/uiStore.d.ts +43 -0
  83. package/dist/ui/client/state/uiStore.d.ts.map +1 -0
  84. package/dist/ui/client/state/uiStore.js +109 -0
  85. package/dist/ui/client/state/uiStore.js.map +1 -0
  86. package/dist/ui/client/styles/animations.css +349 -0
  87. package/dist/ui/client/styles/base.css +214 -0
  88. package/dist/ui/client/styles/components.css +400 -0
  89. package/dist/ui/client/styles/layout.css +224 -0
  90. package/dist/ui/client/styles/variables.css +140 -0
  91. package/dist/ui/client/utils/events.d.ts +19 -0
  92. package/dist/ui/client/utils/events.d.ts.map +1 -0
  93. package/dist/ui/client/utils/events.js +54 -0
  94. package/dist/ui/client/utils/events.js.map +1 -0
  95. package/dist/ui/client/utils/formatting.d.ts +11 -0
  96. package/dist/ui/client/utils/formatting.d.ts.map +1 -0
  97. package/dist/ui/client/utils/formatting.js +104 -0
  98. package/dist/ui/client/utils/formatting.js.map +1 -0
  99. package/dist/ui/client/utils/router.d.ts +25 -0
  100. package/dist/ui/client/utils/router.d.ts.map +1 -0
  101. package/dist/ui/client/utils/router.js +90 -0
  102. package/dist/ui/client/utils/router.js.map +1 -0
  103. package/dist/ui/guiServer.d.ts +11 -5
  104. package/dist/ui/guiServer.d.ts.map +1 -1
  105. package/dist/ui/guiServer.js +180 -501
  106. package/dist/ui/guiServer.js.map +1 -1
  107. package/dist/ui/menu.js +18 -27
  108. package/dist/ui/menu.js.map +1 -1
  109. package/dist/ui/prompts.js +34 -47
  110. package/dist/ui/prompts.js.map +1 -1
  111. package/dist/ui/server/middleware/errorHandler.d.ts +19 -0
  112. package/dist/ui/server/middleware/errorHandler.d.ts.map +1 -0
  113. package/dist/ui/server/middleware/errorHandler.js +100 -0
  114. package/dist/ui/server/middleware/errorHandler.js.map +1 -0
  115. package/dist/ui/server/routes/apps.d.ts +8 -0
  116. package/dist/ui/server/routes/apps.d.ts.map +1 -0
  117. package/dist/ui/server/routes/apps.js +74 -0
  118. package/dist/ui/server/routes/apps.js.map +1 -0
  119. package/dist/ui/server/routes/dashboard.d.ts +4 -0
  120. package/dist/ui/server/routes/dashboard.d.ts.map +1 -0
  121. package/dist/ui/server/routes/dashboard.js +57 -0
  122. package/dist/ui/server/routes/dashboard.js.map +1 -0
  123. package/dist/ui/server/routes/settings.d.ts +6 -0
  124. package/dist/ui/server/routes/settings.d.ts.map +1 -0
  125. package/dist/ui/server/routes/settings.js +31 -0
  126. package/dist/ui/server/routes/settings.js.map +1 -0
  127. package/dist/ui/server/services/appService.d.ts +45 -0
  128. package/dist/ui/server/services/appService.d.ts.map +1 -0
  129. package/dist/ui/server/services/appService.js +114 -0
  130. package/dist/ui/server/services/appService.js.map +1 -0
  131. package/dist/ui/server/services/removalService.d.ts +24 -0
  132. package/dist/ui/server/services/removalService.d.ts.map +1 -0
  133. package/dist/ui/server/services/removalService.js +83 -0
  134. package/dist/ui/server/services/removalService.js.map +1 -0
  135. package/dist/utils/filesystem.js +32 -49
  136. package/dist/utils/filesystem.js.map +1 -1
  137. package/dist/utils/logger.js +9 -18
  138. package/dist/utils/logger.js.map +1 -1
  139. package/dist/utils/platform.js +10 -22
  140. package/dist/utils/platform.js.map +1 -1
  141. package/dist/utils/upgrade.d.ts +2 -1
  142. package/dist/utils/upgrade.d.ts.map +1 -1
  143. package/dist/utils/upgrade.js +24 -15
  144. package/dist/utils/upgrade.js.map +1 -1
  145. package/package.json +4 -2
  146. package/scripts/publish-npm.sh +64 -0
  147. package/src/core/appUpdateChecker.ts +1 -1
  148. package/src/core/detector.ts +6 -6
  149. package/src/core/duplicateFileFinder.ts +1 -1
  150. package/src/core/orphanedDependencyDetector.ts +2 -2
  151. package/src/core/performanceOptimizer.ts +1 -1
  152. package/src/core/permissionHandler.ts +2 -2
  153. package/src/core/pluginSystem.ts +1 -1
  154. package/src/core/removalRecorder.ts +2 -2
  155. package/src/core/remover.ts +11 -11
  156. package/src/core/reportGenerator.ts +2 -2
  157. package/src/core/scheduledCleanup.ts +2 -2
  158. package/src/core/serviceFileDetector.ts +2 -2
  159. package/src/core/verificationModule.ts +2 -2
  160. package/src/index.ts +8 -8
  161. package/src/managers/brewManager.ts +3 -3
  162. package/src/managers/customManager.ts +2 -2
  163. package/src/managers/linuxManager.ts +3 -3
  164. package/src/managers/npmManager.ts +3 -3
  165. package/src/ui/client/api/client.ts +168 -0
  166. package/src/ui/client/app.ts +125 -0
  167. package/src/ui/client/index.html +107 -0
  168. package/src/ui/client/pages/appDetails.ts +356 -0
  169. package/src/ui/client/pages/appSearch.ts +283 -0
  170. package/src/ui/client/pages/dashboard.ts +211 -0
  171. package/src/ui/client/pages/settings.ts +342 -0
  172. package/src/ui/client/state/appStore.ts +181 -0
  173. package/src/ui/client/state/dashboardStore.ts +123 -0
  174. package/src/ui/client/state/uiStore.ts +166 -0
  175. package/src/ui/client/styles/animations.css +349 -0
  176. package/src/ui/client/styles/base.css +214 -0
  177. package/src/ui/client/styles/components.css +400 -0
  178. package/src/ui/client/styles/layout.css +224 -0
  179. package/src/ui/client/styles/variables.css +140 -0
  180. package/src/ui/client/utils/events.ts +74 -0
  181. package/src/ui/client/utils/formatting.ts +157 -0
  182. package/src/ui/client/utils/router.ts +161 -0
  183. package/src/ui/guiServer.ts +245 -498
  184. package/src/ui/prompts.ts +1 -1
  185. package/src/ui/server/middleware/errorHandler.ts +174 -0
  186. package/src/ui/server/routes/apps.ts +132 -0
  187. package/src/ui/server/routes/dashboard.ts +93 -0
  188. package/src/ui/server/routes/settings.ts +63 -0
  189. package/src/ui/server/services/appService.ts +184 -0
  190. package/src/ui/server/services/removalService.ts +138 -0
  191. package/src/utils/upgrade.ts +19 -2
  192. package/tsconfig.json +3 -2
  193. package/INDEX.md +0 -165
  194. /package/{ACTION_CHECKLIST.md → MD_Files/ACTION_CHECKLIST.md} +0 -0
  195. /package/{APPCLEAN_SUMMARY.md → MD_Files/APPCLEAN_SUMMARY.md} +0 -0
  196. /package/{CHANGELOG.md → MD_Files/CHANGELOG.md} +0 -0
  197. /package/{CODE_OF_CONDUCT.md → MD_Files/CODE_OF_CONDUCT.md} +0 -0
  198. /package/{CODE_REVIEW_REPORT.md → MD_Files/CODE_REVIEW_REPORT.md} +0 -0
  199. /package/{COMMUNITY_POSTS.md → MD_Files/COMMUNITY_POSTS.md} +0 -0
  200. /package/{DEPLOYMENT_GUIDE.md → MD_Files/DEPLOYMENT_GUIDE.md} +0 -0
  201. /package/{DEPLOYMENT_STATUS.md → MD_Files/DEPLOYMENT_STATUS.md} +0 -0
  202. /package/{EXECUTIVE_REPORT.md → MD_Files/EXECUTIVE_REPORT.md} +0 -0
  203. /package/{GITHUB_OPTIMIZATION.md → MD_Files/GITHUB_OPTIMIZATION.md} +0 -0
  204. /package/{MARKETING_SUMMARY.md → MD_Files/MARKETING_SUMMARY.md} +0 -0
  205. /package/{NPM_PACKAGE_OPTIMIZATION.md → MD_Files/NPM_PACKAGE_OPTIMIZATION.md} +0 -0
  206. /package/{NPM_PUBLISH.md → MD_Files/NPM_PUBLISH.md} +0 -0
  207. /package/{PROJECT_SUMMARY.txt → MD_Files/PROJECT_SUMMARY.txt} +0 -0
  208. /package/{PUBLICATION_SUCCESS_REPORT.md → MD_Files/PUBLICATION_SUCCESS_REPORT.md} +0 -0
  209. /package/{QUICKSTART.md → MD_Files/QUICKSTART.md} +0 -0
  210. /package/{SETUP_GITHUB.md → MD_Files/SETUP_GITHUB.md} +0 -0
  211. /package/{TESTING_SUMMARY.md → MD_Files/TESTING_SUMMARY.md} +0 -0
  212. /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,349 @@
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 slideUp {
43
+ from {
44
+ opacity: 0;
45
+ transform: translateY(20px);
46
+ }
47
+ to {
48
+ opacity: 1;
49
+ transform: translateY(0);
50
+ }
51
+ }
52
+
53
+ @keyframes slideIn {
54
+ from {
55
+ opacity: 0;
56
+ transform: translateX(-10px);
57
+ }
58
+ to {
59
+ opacity: 1;
60
+ transform: translateX(0);
61
+ }
62
+ }
63
+
64
+ @keyframes slideOutDown {
65
+ from {
66
+ opacity: 1;
67
+ transform: translateY(0);
68
+ }
69
+ to {
70
+ opacity: 0;
71
+ transform: translateY(10px);
72
+ }
73
+ }
74
+
75
+ @keyframes slideInDown {
76
+ from {
77
+ opacity: 0;
78
+ transform: translateY(-10px);
79
+ }
80
+ to {
81
+ opacity: 1;
82
+ transform: translateY(0);
83
+ }
84
+ }
85
+
86
+ @keyframes slideInLeft {
87
+ from {
88
+ opacity: 0;
89
+ transform: translateX(-10px);
90
+ }
91
+ to {
92
+ opacity: 1;
93
+ transform: translateX(0);
94
+ }
95
+ }
96
+
97
+ @keyframes slideInRight {
98
+ from {
99
+ opacity: 0;
100
+ transform: translateX(10px);
101
+ }
102
+ to {
103
+ opacity: 1;
104
+ transform: translateX(0);
105
+ }
106
+ }
107
+
108
+ .slide-in-up {
109
+ animation: slideInUp var(--transition-normal) ease-out forwards;
110
+ }
111
+
112
+ .slide-in-down {
113
+ animation: slideInDown var(--transition-normal) ease-out forwards;
114
+ }
115
+
116
+ .slide-in-left {
117
+ animation: slideInLeft var(--transition-normal) ease-out forwards;
118
+ }
119
+
120
+ .slide-in-right {
121
+ animation: slideInRight var(--transition-normal) ease-out forwards;
122
+ }
123
+
124
+ /* Spin Animation */
125
+ @keyframes spin {
126
+ from {
127
+ transform: rotate(0deg);
128
+ }
129
+ to {
130
+ transform: rotate(360deg);
131
+ }
132
+ }
133
+
134
+ .spin {
135
+ animation: spin 1s linear infinite;
136
+ }
137
+
138
+ /* Pulse Animation */
139
+ @keyframes pulse {
140
+ 0%, 100% {
141
+ opacity: 1;
142
+ }
143
+ 50% {
144
+ opacity: 0.5;
145
+ }
146
+ }
147
+
148
+ .pulse {
149
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
150
+ }
151
+
152
+ /* Scale Animation */
153
+ @keyframes scaleIn {
154
+ from {
155
+ opacity: 0;
156
+ transform: scale(0.95);
157
+ }
158
+ to {
159
+ opacity: 1;
160
+ transform: scale(1);
161
+ }
162
+ }
163
+
164
+ @keyframes scaleOut {
165
+ from {
166
+ opacity: 1;
167
+ transform: scale(1);
168
+ }
169
+ to {
170
+ opacity: 0;
171
+ transform: scale(0.95);
172
+ }
173
+ }
174
+
175
+ .scale-in {
176
+ animation: scaleIn var(--transition-normal) ease-out forwards;
177
+ }
178
+
179
+ .scale-out {
180
+ animation: scaleOut var(--transition-normal) ease-out forwards;
181
+ }
182
+
183
+ /* Bounce Animation */
184
+ @keyframes bounce {
185
+ 0%, 100% {
186
+ transform: translateY(0);
187
+ }
188
+ 50% {
189
+ transform: translateY(-10px);
190
+ }
191
+ }
192
+
193
+ .bounce {
194
+ animation: bounce 1s ease-in-out infinite;
195
+ }
196
+
197
+ /* Wiggle Animation */
198
+ @keyframes wiggle {
199
+ 0%, 100% {
200
+ transform: translateX(0);
201
+ }
202
+ 25% {
203
+ transform: translateX(-2px);
204
+ }
205
+ 75% {
206
+ transform: translateX(2px);
207
+ }
208
+ }
209
+
210
+ .wiggle {
211
+ animation: wiggle 0.5s ease-in-out;
212
+ }
213
+
214
+ /* Skeleton Loading */
215
+ @keyframes shimmer {
216
+ 0% {
217
+ background-position: -1000px 0;
218
+ }
219
+ 100% {
220
+ background-position: 1000px 0;
221
+ }
222
+ }
223
+
224
+ .skeleton {
225
+ background: linear-gradient(
226
+ 90deg,
227
+ var(--bg-secondary) 0%,
228
+ var(--bg-hover) 50%,
229
+ var(--bg-secondary) 100%
230
+ );
231
+ background-size: 200% 100%;
232
+ animation: shimmer 2s infinite;
233
+ border-radius: var(--radius-md);
234
+ }
235
+
236
+ /* Page Transitions */
237
+ .page-enter {
238
+ animation: slideInUp var(--transition-normal) ease-out;
239
+ }
240
+
241
+ .page-exit {
242
+ animation: slideOutDown var(--transition-normal) ease-out;
243
+ }
244
+
245
+ /* Loading Spinner Variants */
246
+ .spinner {
247
+ display: inline-block;
248
+ width: 20px;
249
+ height: 20px;
250
+ border: 3px solid var(--bg-secondary);
251
+ border-top-color: var(--color-primary);
252
+ border-radius: 50%;
253
+ animation: spin 1s linear infinite;
254
+ }
255
+
256
+ .spinner-sm {
257
+ width: 16px;
258
+ height: 16px;
259
+ border-width: 2px;
260
+ }
261
+
262
+ .spinner-lg {
263
+ width: 32px;
264
+ height: 32px;
265
+ border-width: 4px;
266
+ }
267
+
268
+ .spinner-white {
269
+ border-color: rgba(255, 255, 255, 0.3);
270
+ border-top-color: white;
271
+ }
272
+
273
+ /* Transition Utilities */
274
+ .transition-all {
275
+ transition: all var(--transition-normal);
276
+ }
277
+
278
+ .transition-colors {
279
+ transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
280
+ }
281
+
282
+ .transition-transform {
283
+ transition: transform var(--transition-fast);
284
+ }
285
+
286
+ .transition-opacity {
287
+ transition: opacity var(--transition-fast);
288
+ }
289
+
290
+ /* Hover Effects */
291
+ .hover-lift:hover {
292
+ transform: translateY(-4px);
293
+ box-shadow: var(--shadow-lg);
294
+ }
295
+
296
+ .hover-scale:hover {
297
+ transform: scale(1.05);
298
+ }
299
+
300
+ .hover-glow:hover {
301
+ box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
302
+ }
303
+
304
+ /* Focus Visible */
305
+ :focus-visible {
306
+ outline: 2px solid var(--color-primary);
307
+ outline-offset: 2px;
308
+ }
309
+
310
+ button:focus-visible {
311
+ outline-offset: -2px;
312
+ }
313
+
314
+ /* Disabled State */
315
+ [disabled] {
316
+ opacity: 0.5;
317
+ cursor: not-allowed;
318
+ }
319
+
320
+ /* Active State */
321
+ .active {
322
+ opacity: 1;
323
+ }
324
+
325
+ /* Error Shake */
326
+ @keyframes shake {
327
+ 0%, 100% {
328
+ transform: translateX(0);
329
+ }
330
+ 10%, 30%, 50%, 70%, 90% {
331
+ transform: translateX(-4px);
332
+ }
333
+ 20%, 40%, 60%, 80% {
334
+ transform: translateX(4px);
335
+ }
336
+ }
337
+
338
+ .shake {
339
+ animation: shake 0.5s ease-in-out;
340
+ }
341
+
342
+ /* Smooth Transitions for Theme Toggle */
343
+ body {
344
+ transition: background-color var(--transition-normal), color var(--transition-normal);
345
+ }
346
+
347
+ * {
348
+ transition: background-color var(--transition-normal), border-color var(--transition-normal);
349
+ }
@@ -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
+ }