- Add /public static file route for themes and shared assets - Fix chat app initialization for dynamic script loading - Add ThemeManager with dropdown selector for 19 theme variants - Improve module lazy loading with better retry logic - Add loading overlay for smoother app startup - Refactor app.css to use unified theme variables - Format code and organize imports consistently
526 lines
10 KiB
CSS
526 lines
10 KiB
CSS
/* App-specific styles for General Bots Desktop */
|
|
/* All modules (chat, drive, tasks, mail) use these unified theme variables */
|
|
|
|
@import url("global.css");
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family:
|
|
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
|
|
sans-serif;
|
|
background: var(--primary-bg);
|
|
color: var(--primary-fg);
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
transition:
|
|
background var(--transition-smooth),
|
|
color var(--transition-smooth);
|
|
}
|
|
|
|
/* Main Content */
|
|
#main-content {
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.content-section {
|
|
display: none;
|
|
height: 100%;
|
|
overflow: auto;
|
|
}
|
|
|
|
.content-section.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Panel Styles - used across all modules */
|
|
.panel {
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
box-shadow: var(--shadow-sm);
|
|
backdrop-filter: blur(20px);
|
|
}
|
|
|
|
.panel:hover {
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
/* Drive Layout */
|
|
.drive-layout {
|
|
display: grid;
|
|
grid-template-columns: 250px 1fr 300px;
|
|
gap: var(--space-md);
|
|
padding: var(--space-lg);
|
|
height: 100%;
|
|
background: var(--primary-bg);
|
|
}
|
|
|
|
.drive-sidebar,
|
|
.drive-details {
|
|
overflow-y: auto;
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-md);
|
|
backdrop-filter: blur(20px);
|
|
}
|
|
|
|
.drive-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-lg);
|
|
backdrop-filter: blur(20px);
|
|
}
|
|
|
|
.nav-item {
|
|
padding: 12px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
border-radius: var(--radius-md);
|
|
margin: 4px 0;
|
|
transition: all var(--transition-fast);
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: var(--bg-hover);
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.file-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--space-md);
|
|
}
|
|
|
|
.file-item {
|
|
padding: var(--space-md);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
cursor: pointer;
|
|
border-radius: var(--radius-md);
|
|
border-bottom: 1px solid var(--border-light);
|
|
transition: all var(--transition-fast);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.file-item:hover {
|
|
background: var(--bg-hover);
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.file-item.selected {
|
|
background: var(--accent-light);
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.file-icon {
|
|
font-size: 32px;
|
|
}
|
|
|
|
/* Tasks Layout */
|
|
.tasks-container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: var(--space-xl);
|
|
padding-top: 80px;
|
|
}
|
|
|
|
.task-input {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-xl);
|
|
}
|
|
|
|
.task-input input {
|
|
flex: 1;
|
|
padding: 12px 20px;
|
|
background: var(--glass-bg);
|
|
border: 2px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
color: var(--text-primary);
|
|
font-size: 15px;
|
|
transition: all var(--transition-fast);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.task-input input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 4px var(--accent-light);
|
|
}
|
|
|
|
.task-input input::placeholder {
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.task-input button {
|
|
padding: 12px 24px;
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--radius-lg);
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
transition: all var(--transition-fast);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.task-input button:hover {
|
|
background: var(--accent-hover);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.task-list {
|
|
list-style: none;
|
|
}
|
|
|
|
.task-item {
|
|
padding: var(--space-md);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-md);
|
|
margin-bottom: var(--space-sm);
|
|
transition: all var(--transition-fast);
|
|
backdrop-filter: blur(20px);
|
|
}
|
|
|
|
.task-item:hover {
|
|
transform: translateX(4px);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.task-item.completed span {
|
|
text-decoration: line-through;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.task-item input[type="checkbox"] {
|
|
width: 20px;
|
|
height: 20px;
|
|
cursor: pointer;
|
|
accent-color: var(--accent-color);
|
|
}
|
|
|
|
.task-item span {
|
|
flex: 1;
|
|
color: var(--text-primary);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.task-item button {
|
|
background: var(--error-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.task-item button:hover {
|
|
opacity: 0.9;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.task-filters {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
margin-top: var(--space-xl);
|
|
padding-top: var(--space-xl);
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.task-filters button {
|
|
padding: 10px 20px;
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.task-filters button:hover {
|
|
background: var(--bg-hover);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.task-filters button.active {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
/* Mail Layout */
|
|
.mail-layout {
|
|
display: grid;
|
|
grid-template-columns: 250px 350px 1fr;
|
|
gap: var(--space-md);
|
|
padding: var(--space-lg);
|
|
height: 100%;
|
|
background: var(--primary-bg);
|
|
}
|
|
|
|
.mail-sidebar,
|
|
.mail-list,
|
|
.mail-content {
|
|
overflow-y: auto;
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-md);
|
|
backdrop-filter: blur(20px);
|
|
}
|
|
|
|
.mail-item {
|
|
padding: var(--space-md);
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--border-light);
|
|
transition: all var(--transition-fast);
|
|
border-radius: var(--radius-sm);
|
|
margin-bottom: var(--space-xs);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.mail-item:hover {
|
|
background: var(--bg-hover);
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.mail-item.unread {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.mail-item.selected {
|
|
background: var(--accent-light);
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.mail-content-view {
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.mail-header {
|
|
margin-bottom: var(--space-lg);
|
|
padding-bottom: var(--space-md);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.mail-header h2 {
|
|
color: var(--text-primary);
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.mail-header .text-sm {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.mail-body {
|
|
line-height: 1.7;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Responsive adjustments for all modules */
|
|
@media (max-width: 1024px) {
|
|
.drive-layout {
|
|
grid-template-columns: 200px 1fr;
|
|
}
|
|
|
|
.drive-details {
|
|
display: none;
|
|
}
|
|
|
|
.mail-layout {
|
|
grid-template-columns: 200px 300px 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.drive-layout {
|
|
grid-template-columns: 1fr;
|
|
padding: var(--space-md);
|
|
}
|
|
|
|
.drive-sidebar,
|
|
.drive-details {
|
|
display: none;
|
|
}
|
|
|
|
.mail-layout {
|
|
grid-template-columns: 1fr;
|
|
padding: var(--space-md);
|
|
}
|
|
|
|
.mail-sidebar,
|
|
.mail-list {
|
|
display: none;
|
|
}
|
|
|
|
.tasks-container {
|
|
padding: var(--space-lg);
|
|
padding-top: 80px;
|
|
}
|
|
|
|
.task-input {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.task-input button {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.tasks-container {
|
|
padding: var(--space-md);
|
|
padding-top: 70px;
|
|
}
|
|
|
|
.task-item {
|
|
padding: var(--space-sm);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.task-filters {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
/* Common utility classes for all modules */
|
|
.module-header {
|
|
padding: var(--space-lg);
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(20px);
|
|
}
|
|
|
|
.module-header h1 {
|
|
color: var(--text-primary);
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.module-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-md);
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.module-toolbar button {
|
|
padding: 8px 16px;
|
|
background: var(--bg);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.module-toolbar button:hover {
|
|
background: var(--bg-hover);
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.module-toolbar button.primary {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.module-toolbar button.primary:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
/* Empty state for all modules */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--space-xl);
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.empty-state-icon {
|
|
font-size: 64px;
|
|
margin-bottom: var(--space-md);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.empty-state-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.empty-state-description {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
max-width: 400px;
|
|
}
|
|
|
|
/* Animation classes */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.fade-in {
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.slide-in {
|
|
animation: slideIn 0.3s ease-out;
|
|
}
|