carbono / style.css
appvoid's picture
Update style.css
3346c33 verified
:root {
--primary: #2563eb;
--surface: #ffffff;
--background: #f8fafc;
--text: #1e293b;
--text-secondary: #64748b;
--border: #e2e8f0;
--radius: 16px;
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
@media (prefers-color-scheme: dark) {
:root {
--primary: #3b82f6;
--surface: #1e293b;
--background: #0f172a;
--text: #f8fafc;
--text-secondary: #94a3b8;
--border: #334155;
}
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: var(--background);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
line-height: 1.5;
padding: 1rem;
transition: background-color 0.3s ease;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.header {
text-align: center;
margin-bottom: 2rem;
}
.title {
font-size: 2rem;
font-weight: 700;
margin-bottom: 0.5rem;
background: linear-gradient(45deg, var(--primary), #6366f1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.description {
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.card {
background: var(--surface);
border-radius: var(--radius);
padding: 1.5rem;
box-shadow: var(--shadow);
border: 1px solid var(--border);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
.card-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.input-group {
margin-bottom: 1rem;
}
.input-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}
input, select, textarea {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--border);
border-radius: calc(var(--radius) / 2);
background: var(--background);
color: var(--text);
font-size: 0.95rem;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background: var(--primary);
color: white;
border: none;
border-radius: calc(var(--radius) / 2);
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease;
}
.button:hover {
background: #1d4ed8;
transform: translateY(-1px);
}
.button:active {
transform: translateY(0);
}
.button:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.progress-container {
position: relative;
height: 200px;
border-radius: var(--radius);
overflow: hidden;
background: var(--background);
border: 1px solid var(--border);
}
.progress-bar {
height: 6px;
background: var(--background);
border-radius: 3px;
overflow: hidden;
margin: 1rem 0;
}
.progress-value {
height: 100%;
background: var(--primary);
border-radius: 3px;
transition: width 0.3s ease;
}
.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.stat {
text-align: center;
padding: 1rem;
background: var(--background);
border-radius: calc(var(--radius) / 2);
border: 1px solid var(--border);
}
.stat-value {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.25rem;
}
.stat-label {
color: var(--text-secondary);
font-size: 0.875rem;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-in {
animation: fadeIn 0.3s ease forwards;
}
@media (max-width: 768px) {
.container {
padding: 1rem;
}
.grid {
grid-template-columns: 1fr;
}
.card {
padding: 1rem;
}
}