ai-usage-tracker / styles.css
sudzdpn's picture
Upload 4 files
ac58df0 verified
:root {
--hf-orange: #f97316;
--hf-yellow: #fbbf24;
--text-dark: #0f172a;
--text-muted: #475569;
--bg-light: #f8f9fa;
--card-bg: #ffffff;
--border: #e2e8f0;
}
* {
box-sizing: border-box;
}
body {
font-family: 'Inter', system-ui, sans-serif;
margin: 0;
padding: 0;
background-color: var(--bg-light);
color: var(--text-dark);
line-height: 1.6;
}
.navbar {
background: white;
border-bottom: 1px solid var(--border);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.logo {
font-size: 1.6rem;
font-weight: 700;
color: var(--hf-orange);
}
.logo i {
margin-right: 0.5rem;
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
color: var(--text-muted);
text-decoration: none;
font-weight: 500;
display: flex;
align-items: center;
gap: 0.5rem;
transition: color 0.2s;
}
.nav-links a:hover {
color: var(--hf-orange);
}
.container {
max-width: 1280px;
margin: 0 auto;
padding: 2rem 1rem;
}
.section-title {
font-size: 2.25rem;
font-weight: 800;
margin-bottom: 1.5rem;
color: var(--text-dark);
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
gap: 1.75rem;
}
.card {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 0.75rem;
padding: 1.5rem;
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.card-title {
font-size: 1.35rem;
font-weight: 700;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.75rem;
color: var(--text-dark);
}
.card-title i {
color: var(--hf-orange);
font-size: 1.4rem;
}
.progress-container {
margin: 1.25rem 0;
}
.progress-bar {
background: #e2e8f0;
border-radius: 9999px;
height: 0.75rem;
overflow: hidden;
}
.progress-fill {
height: 100%;
transition: width 0.4s ease;
}
.progress-text {
font-size: 0.95rem;
color: var(--text-muted);
margin-top: 0.5rem;
text-align: center;
font-weight: 500;
}
.chart-container {
height: 160px;
margin: 1rem 0;
}
.button {
padding: 0.65rem 1.25rem;
border: none;
border-radius: 0.5rem;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 0.5rem;
transition: all 0.2s;
}
.button.primary {
background: var(--hf-yellow);
color: var(--text-dark);
}
.button.primary:hover {
background: var(--hf-orange);
color: white;
}
.button.secondary {
background: var(--text-muted);
color: white;
}
.button.secondary:hover {
background: #334155;
}
.form-group {
margin-bottom: 1.25rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--text-dark);
}
.form-group input,
.form-group select {
width: 100%;
padding: 0.75rem 1rem;
border: 1px solid #cbd5e1;
border-radius: 0.5rem;
font-size: 1rem;
background: #f8fafc;
}
#history-list {
list-style: none;
padding: 0;
}
#history-list li {
background: white;
border: 1px solid var(--border);
border-radius: 0.5rem;
padding: 1.25rem;
margin-bottom: 1rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.modal {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.5);
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal-content {
background: white;
width: 90%;
max-width: 480px;
border-radius: 0.75rem;
padding: 1.75rem;
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
position: relative;
}
.close {
position: absolute;
right: 1.25rem;
top: 1rem;
font-size: 2rem;
color: #94a3b8;
cursor: pointer;
}
.close:hover {
color: #1e293b;
}
@media (max-width: 640px) {
.navbar {
flex-direction: column;
gap: 1rem;
padding: 1.25rem;
}
.nav-links {
flex-wrap: wrap;
justify-content: center;
}
}