CHAINR / frontend /src /styles /globals.css
chainr-ai's picture
Upload 8536 files
4888678 verified
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-primary: #0a0a0a;
--bg-secondary: #1a1a1a;
--bg-tertiary: #2a2a2a;
--border-primary: #333;
--border-secondary: #404040;
--text-primary: #ffffff;
--text-secondary: #cccccc;
--text-muted: #888888;
--text-accent: #666666;
--accent-primary: #2563eb;
--accent-hover: #1d4ed8;
--accent-light: #2563eb20;
--success: #10b981;
--error: #ef4444;
--warning: #f59e0b;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background-color: var(--bg-primary);
color: var(--text-primary);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.app {
height: 100vh;
overflow: hidden;
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border-secondary);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* Button Styles */
.btn {
padding: 8px 16px;
border-radius: 6px;
border: none;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
text-decoration: none;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-primary {
background: var(--accent-primary);
color: white;
}
.btn-primary:hover:not(:disabled) {
background: var(--accent-hover);
}
.btn-secondary {
background: var(--bg-tertiary);
color: var(--text-secondary);
border: 1px solid var(--border-secondary);
}
.btn-secondary:hover:not(:disabled) {
background: var(--border-secondary);
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border-secondary);
}
.btn-ghost:hover:not(:disabled) {
background: var(--bg-tertiary);
}
/* Input Styles */
.input {
background: var(--bg-tertiary);
border: 1px solid var(--border-secondary);
border-radius: 6px;
padding: 10px 12px;
color: var(--text-primary);
font-size: 14px;
outline: none;
transition: border-color 0.2s ease;
width: 100%;
}
.input:focus {
border-color: var(--accent-primary);
}
.input::placeholder {
color: var(--text-accent);
}
/* Form Styles */
.form-group {
margin-bottom: 16px;
}
.form-label {
display: block;
margin-bottom: 6px;
font-weight: 500;
color: var(--text-secondary);
}
.form-error {
color: var(--error);
font-size: 12px;
margin-top: 4px;
}
/* Loading Spinner */
.spinner {
width: 20px;
height: 20px;
border: 2px solid var(--border-secondary);
border-top: 2px solid var(--accent-primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Responsive Design */
@media (max-width: 768px) {
.btn {
padding: 10px 16px;
font-size: 16px;
}
.input {
padding: 12px;
font-size: 16px;
}
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
.fade-in {
animation: fadeIn 0.3s ease-out;
}
.slide-in {
animation: slideIn 0.3s ease-out;
}
/* Utility Classes */
.flex {
display: flex;
}
.flex-1 {
flex: 1;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.gap-2 {
gap: 8px;
}
.gap-4 {
gap: 16px;
}
.text-center {
text-align: center;
}
.text-sm {
font-size: 12px;
}
.text-lg {
font-size: 18px;
}
.font-medium {
font-weight: 500;
}
.font-semibold {
font-weight: 600;
}
.font-bold {
font-weight: 700;
}
.mt-4 {
margin-top: 16px;
}
.mb-4 {
margin-bottom: 16px;
}
.p-4 {
padding: 16px;
}
.p-6 {
padding: 24px;
}
.rounded {
border-radius: 6px;
}
.rounded-lg {
border-radius: 12px;
}
.border {
border: 1px solid var(--border-secondary);
}
.bg-secondary {
background-color: var(--bg-secondary);
}
.text-muted {
color: var(--text-muted);
}
.text-accent {
color: var(--accent-primary);
}