Redesign: Modern sleek UI with dark mode aesthetics

This commit is contained in:
2026-03-08 23:21:29 -05:00
parent 626b3e342a
commit 47df61902b

View File

@@ -5,43 +5,66 @@
} }
:root { :root {
--primary: #2563eb; /* Modern dark color palette */
--primary-dark: #1e40af; --primary: #3b82f6;
--secondary: #64748b; --primary-hover: #2563eb;
--primary-light: #60a5fa;
--accent: #8b5cf6;
--success: #10b981; --success: #10b981;
--danger: #ef4444; --danger: #ef4444;
--warning: #f59e0b; --warning: #f59e0b;
--bg: #ffffff;
--bg-secondary: #f8fafc; /* Dark theme */
--border: #e2e8f0; --bg-primary: #0f172a;
--text: #0f172a; --bg-secondary: #1e293b;
--text-secondary: #64748b; --bg-tertiary: #334155;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1); --bg-elevated: #1e293b;
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
/* Borders */
--border: #334155;
--border-light: #475569;
/* Text */
--text-primary: #f1f5f9;
--text-secondary: #cbd5e1;
--text-muted: #94a3b8;
/* Shadows */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
/* Misc */
--radius: 0.5rem;
--radius-sm: 0.375rem;
--radius-lg: 0.75rem;
--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
} }
body { body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
background: var(--bg-secondary); background: var(--bg-primary);
color: var(--text); color: var(--text-primary);
line-height: 1.6; line-height: 1.6;
font-size: 14px;
} }
code { code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; font-family: 'JetBrains Mono', 'Fira Code', monospace;
font-size: 0.875em;
} }
#root { #root {
min-height: 100vh; min-height: 100vh;
} }
/* Scrollbar styling */ /* Scrollbar */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 8px; width: 10px;
height: 8px; height: 10px;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
@@ -49,33 +72,47 @@ code {
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: var(--border); background: var(--bg-tertiary);
border-radius: 4px; border-radius: 5px;
border: 2px solid var(--bg-secondary);
} }
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {
background: var(--secondary); background: var(--border-light);
} }
/* Utility classes */ /* Typography */
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
letter-spacing: -0.025em;
color: var(--text-primary);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
/* Layout */
.container { .container {
max-width: 1280px; max-width: 1400px;
margin: 0 auto; margin: 0 auto;
padding: 0 1rem; padding: 0 1.5rem;
} }
/* Buttons */
.btn { .btn {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
padding: 0.625rem 1.25rem; padding: 0.625rem 1.125rem;
border: none; border: 1px solid transparent;
border-radius: 0.375rem; border-radius: var(--radius-sm);
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 500; font-weight: 500;
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: var(--transition);
text-decoration: none; text-decoration: none;
white-space: nowrap;
} }
.btn:hover:not(:disabled) { .btn:hover:not(:disabled) {
@@ -83,6 +120,10 @@ code {
box-shadow: var(--shadow); box-shadow: var(--shadow);
} }
.btn:active:not(:disabled) {
transform: translateY(0);
}
.btn:disabled { .btn:disabled {
opacity: 0.5; opacity: 0.5;
cursor: not-allowed; cursor: not-allowed;
@@ -91,15 +132,22 @@ code {
.btn-primary { .btn-primary {
background: var(--primary); background: var(--primary);
color: white; color: white;
box-shadow: var(--shadow-sm);
} }
.btn-primary:hover:not(:disabled) { .btn-primary:hover:not(:disabled) {
background: var(--primary-dark); background: var(--primary-hover);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
} }
.btn-secondary { .btn-secondary {
background: var(--secondary); background: var(--bg-tertiary);
color: white; color: var(--text-primary);
border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
background: var(--border-light);
} }
.btn-success { .btn-success {
@@ -112,60 +160,107 @@ code {
color: white; color: white;
} }
.btn-ghost {
background: transparent;
color: var(--text-secondary);
border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.btn-icon { .btn-icon {
background: none; background: transparent;
border: none; border: none;
cursor: pointer; cursor: pointer;
padding: 0.5rem; padding: 0.5rem;
border-radius: 0.375rem; border-radius: var(--radius-sm);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: var(--text-secondary); color: var(--text-secondary);
transition: all 0.2s; transition: var(--transition);
} }
.btn-icon:hover { .btn-icon:hover {
background: var(--bg-secondary); background: var(--bg-tertiary);
color: var(--text); color: var(--text-primary);
} }
/* Cards */
.card { .card {
background: var(--bg); background: var(--bg-secondary);
border-radius: 0.5rem; border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.5rem; padding: 1.5rem;
box-shadow: var(--shadow); box-shadow: var(--shadow-sm);
transition: var(--transition);
} }
.card:hover {
border-color: var(--border-light);
}
.card-elevated {
background: var(--bg-elevated);
box-shadow: var(--shadow-lg);
}
/* Inputs */
.input, .input,
textarea { textarea,
select {
width: 100%; width: 100%;
padding: 0.625rem; padding: 0.625rem 0.875rem;
background: var(--bg-primary);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: 0.375rem; border-radius: var(--radius-sm);
font-size: 0.875rem; font-size: 0.875rem;
transition: border-color 0.2s; color: var(--text-primary);
transition: var(--transition);
font-family: inherit; font-family: inherit;
} }
.input:focus, .input:focus,
textarea:focus { textarea:focus,
select:focus {
outline: none; outline: none;
border-color: var(--primary); border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.input::placeholder {
color: var(--text-muted);
} }
textarea { textarea {
resize: vertical; resize: vertical;
min-height: 100px;
}
select {
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
background-position: right 0.5rem center;
background-repeat: no-repeat;
background-size: 1.5em 1.5em;
padding-right: 2.5rem;
} }
.label { .label {
display: block; display: block;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
font-size: 0.875rem; font-size: 0.8125rem;
font-weight: 500; font-weight: 500;
color: var(--text-secondary); color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
} }
/* Grid */
.grid { .grid {
display: grid; display: grid;
gap: 1.5rem; gap: 1.5rem;
@@ -176,47 +271,95 @@ textarea {
} }
.grid-3 { .grid-3 {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
} }
.grid-4 {
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
/* States */
.loading { .loading {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
min-height: 200px; min-height: 300px;
color: var(--text-muted);
} }
.error { .error {
color: var(--danger); color: var(--danger);
padding: 1rem; padding: 1rem;
background: #fee2e2; background: rgba(239, 68, 68, 0.1);
border-radius: 0.375rem; border: 1px solid rgba(239, 68, 68, 0.3);
border-radius: var(--radius);
margin: 1rem 0; margin: 1rem 0;
} }
/* Modal styles */ /* Badges */
.badge {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.625rem;
font-size: 0.75rem;
font-weight: 500;
border-radius: 9999px;
white-space: nowrap;
}
.badge-primary {
background: rgba(59, 130, 246, 0.2);
color: var(--primary-light);
}
.badge-success {
background: rgba(16, 185, 129, 0.2);
color: var(--success);
}
/* Modal */
.modal-overlay { .modal-overlay {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(4px);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
z-index: 1000; z-index: 1000;
padding: 1rem; padding: 1rem;
animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
} }
.modal-content { .modal-content {
background: var(--bg); background: var(--bg-secondary);
border-radius: 0.5rem; border: 1px solid var(--border);
box-shadow: var(--shadow-lg); border-radius: var(--radius-lg);
box-shadow: var(--shadow-xl);
max-width: 800px; max-width: 800px;
width: 100%; width: 100%;
max-height: 90vh; max-height: 90vh;
overflow-y: auto; overflow-y: auto;
animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
} }
.modal-header { .modal-header {
@@ -228,7 +371,7 @@ textarea {
} }
.modal-header h2 { .modal-header h2 {
font-size: 1.5rem; font-size: 1.25rem;
font-weight: 600; font-weight: 600;
} }
@@ -240,23 +383,82 @@ textarea {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
gap: 0.75rem; gap: 0.75rem;
padding-top: 1.5rem; padding: 1.5rem;
border-top: 1px solid var(--border); border-top: 1px solid var(--border);
margin-top: 1.5rem;
} }
/* Form styles */ /* Forms */
.form-group { .form-group {
margin-bottom: 1rem; margin-bottom: 1.25rem;
} }
.form-grid { .form-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem; gap: 1.25rem;
} }
select.input { /* Divider */
background: white; .divider {
cursor: pointer; height: 1px;
background: var(--border);
margin: 1.5rem 0;
}
/* Info row */
.info-row {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.625rem 0;
border-bottom: 1px solid var(--border);
}
.info-row:last-child {
border-bottom: none;
}
.info-label {
font-size: 0.8125rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
min-width: 120px;
font-weight: 500;
}
.info-value {
color: var(--text-primary);
font-weight: 500;
}
/* Stats card */
.stat-card {
text-align: center;
padding: 2rem 1.5rem;
}
.stat-icon {
margin: 0 auto 1rem;
width: 3rem;
height: 3rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius);
background: var(--bg-tertiary);
}
.stat-value {
font-size: 2.5rem;
font-weight: 700;
line-height: 1;
margin-bottom: 0.5rem;
}
.stat-label {
font-size: 0.875rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
} }