← back to Letsbegin
app/globals.css
471 lines
@import "tailwindcss";
:root {
/* 21st.dev Inspired Dark Theme */
--background: #0a0a0f;
--surface: #12121a;
--surface-alt: #1a1a24;
--surface-elevated: #22222e;
--primary: #6366f1;
--primary-glow: #818cf8;
--primary-dark: #4f46e5;
--secondary: #a855f7;
--secondary-glow: #c084fc;
--accent: #22d3ee;
--success: #22c55e;
--success-bg: rgba(34, 197, 94, 0.1);
--warning: #f59e0b;
--warning-bg: rgba(245, 158, 11, 0.1);
--error: #ef4444;
--error-bg: rgba(239, 68, 68, 0.1);
--border: #2a2a3a;
--border-light: #3a3a4a;
--foreground: #fafafa;
--foreground-secondary: #a1a1aa;
--foreground-tertiary: #71717a;
/* Gradients */
--gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
--gradient-glow: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
--gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
/* Shadows */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
--shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
/* Radius */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 16px;
--radius-xl: 24px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
min-height: 100vh;
background: var(--background);
color: var(--foreground);
font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow: hidden;
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--surface);
}
::-webkit-scrollbar-thumb {
background: var(--border-light);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--foreground-tertiary);
}
/* Custom Classes */
.gradient-text {
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.glow-border {
box-shadow: var(--shadow-glow);
}
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
}
.card-elevated {
background: var(--surface-elevated);
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
}
/* Button Styles */
.btn-primary {
background: var(--gradient-primary);
color: white;
border: none;
padding: 10px 20px;
border-radius: var(--radius-md);
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-primary:hover {
background: var(--gradient-glow);
box-shadow: var(--shadow-glow);
transform: translateY(-1px);
}
.btn-secondary {
background: var(--surface-alt);
color: var(--foreground);
border: 1px solid var(--border);
padding: 10px 20px;
border-radius: var(--radius-md);
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-secondary:hover {
background: var(--surface-elevated);
border-color: var(--border-light);
}
/* Input Styles */
.input {
background: var(--surface-alt);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 12px 16px;
color: var(--foreground);
font-size: 14px;
width: 100%;
transition: all 0.2s ease;
}
.input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.input::placeholder {
color: var(--foreground-tertiary);
}
/* Textarea */
.textarea {
background: var(--surface-alt);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 12px 16px;
color: var(--foreground);
font-size: 14px;
width: 100%;
min-height: 100px;
resize: vertical;
font-family: inherit;
transition: all 0.2s ease;
}
.textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
/* Tab Styles */
.tab {
padding: 12px 24px;
background: transparent;
border: none;
color: var(--foreground-secondary);
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
position: relative;
}
.tab:hover {
color: var(--foreground);
}
.tab.active {
color: var(--primary);
}
.tab.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background: var(--primary);
}
.tab.completed {
color: var(--success);
}
/* Collapsible Section */
.collapsible-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
background: var(--surface-alt);
border: 1px solid var(--border);
border-radius: var(--radius-md);
cursor: pointer;
transition: all 0.2s ease;
}
.collapsible-header:hover {
background: var(--surface-elevated);
}
.collapsible-content {
overflow: hidden;
transition: max-height 0.3s ease;
}
/* Radio & Checkbox */
.radio-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.radio-option {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
background: var(--surface-alt);
border: 1px solid var(--border);
border-radius: var(--radius-md);
cursor: pointer;
transition: all 0.2s ease;
}
.radio-option:hover {
border-color: var(--primary);
}
.radio-option.selected {
border-color: var(--primary);
background: rgba(99, 102, 241, 0.1);
}
.radio-dot {
width: 18px;
height: 18px;
border: 2px solid var(--border-light);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.radio-dot.selected {
border-color: var(--primary);
}
.radio-dot.selected::after {
content: '';
width: 10px;
height: 10px;
background: var(--primary);
border-radius: 50%;
}
/* Checkbox */
.checkbox-option {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
background: var(--surface-alt);
border: 1px solid var(--border);
border-radius: var(--radius-md);
cursor: pointer;
transition: all 0.2s ease;
}
.checkbox-option:hover {
border-color: var(--primary);
}
.checkbox-option.checked {
border-color: var(--success);
background: var(--success-bg);
}
.checkbox-box {
width: 18px;
height: 18px;
border: 2px solid var(--border-light);
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.checkbox-box.checked {
background: var(--success);
border-color: var(--success);
}
/* Progress Bar */
.progress-bar {
height: 8px;
background: var(--surface-alt);
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: var(--gradient-primary);
transition: width 0.3s ease;
}
/* Status Badges */
.badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 9999px;
font-size: 12px;
font-weight: 500;
}
.badge-success {
background: var(--success-bg);
color: var(--success);
}
.badge-warning {
background: var(--warning-bg);
color: var(--warning);
}
.badge-error {
background: var(--error-bg);
color: var(--error);
}
.badge-primary {
background: rgba(99, 102, 241, 0.1);
color: var(--primary);
}
/* Code Block */
.code-block {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 16px;
font-family: 'JetBrains Mono', 'Fira Code', monospace;
font-size: 13px;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-word;
}
/* Tree View */
.tree-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 8px;
cursor: pointer;
border-radius: var(--radius-sm);
transition: all 0.15s ease;
}
.tree-item:hover {
background: var(--surface-alt);
}
.tree-item.selected {
background: rgba(99, 102, 241, 0.15);
color: var(--primary);
}
.tree-chevron {
width: 16px;
height: 16px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s ease;
}
.tree-chevron.expanded {
transform: rotate(90deg);
}
/* Animation */
@keyframes pulse-glow {
0%, 100% {
box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}
50% {
box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}
}
.animate-pulse-glow {
animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.animate-spin {
animation: spin 1s linear infinite;
}
/* Resizable Panel Handles */
[data-panel-group-direction="horizontal"] > [data-panel-resize-handle-id] {
width: 6px;
margin: 0 2px;
}
[data-panel-group-direction="vertical"] > [data-panel-resize-handle-id] {
height: 6px;
margin: 2px 0;
}
[data-panel-resize-handle-id]:hover {
background: rgba(99, 102, 241, 0.2);
}
[data-panel-resize-handle-id]:active {
background: rgba(99, 102, 241, 0.4);
}
/* Process Status Bar Animations */
@keyframes blink {
0%, 50%, 100% { opacity: 1; }
25%, 75% { opacity: 0.5; }
}
.animate-blink {
animation: blink 2s ease-in-out infinite;
}