nxtgauge-admin-solid/src/app.css

246 lines
3.7 KiB
CSS
Raw Normal View History

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&display=swap');
:root {
--brand-orange: #fd6216;
--brand-navy: #050026;
--brand-orange-50: #fff1e8;
--brand-orange-100: #ffe2d2;
--brand-orange-200: #ffc9ac;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: #f3f4f8;
font-family: 'Exo 2', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: var(--brand-navy);
}
.shell {
display: grid;
grid-template-columns: 280px 1fr;
min-height: 100vh;
}
.sidebar {
border-right: 1px solid #dbe1ec;
background: #fcfcfd;
padding: 16px;
}
.brand {
margin: 4px 0 18px;
}
.brand img {
height: 42px;
width: auto;
object-fit: contain;
}
.nav-item {
display: block;
text-decoration: none;
color: #475569;
border: 1px solid transparent;
background: #fff;
border-radius: 12px;
padding: 10px 12px;
margin-bottom: 8px;
font-size: 14px;
}
.nav-item:hover {
border-color: #dbe1ec;
color: #1f2937;
}
.nav-item.active {
border-color: var(--brand-orange-200);
background: linear-gradient(90deg, var(--brand-orange-50), var(--brand-orange-100));
color: #111827;
font-weight: 600;
}
.main {
padding: 24px;
}
.page-title {
margin: 0;
font-size: 28px;
font-weight: 700;
color: #0f172a;
}
.page-subtitle {
margin-top: 8px;
color: #64748b;
}
.grid {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 16px;
margin-top: 20px;
}
.card {
background: #fff;
border: 1px solid #dbe1ec;
border-radius: 16px;
padding: 16px;
}
.card h2 {
margin: 0 0 12px;
font-size: 18px;
}
.field {
margin-bottom: 12px;
}
.field label {
display: block;
margin-bottom: 6px;
font-size: 13px;
font-weight: 600;
color: #334155;
}
.field input,
.field textarea,
.field select {
width: 100%;
border: 1px solid #cbd5e1;
border-radius: 10px;
padding: 10px;
font-size: 14px;
background: #fff;
}
.actions {
display: flex;
gap: 10px;
margin-top: 16px;
}
.btn {
border: 1px solid #cbd5e1;
background: #fff;
color: #334155;
border-radius: 10px;
padding: 10px 14px;
font-weight: 600;
cursor: pointer;
}
.btn.primary {
border-color: var(--brand-orange);
background: var(--brand-orange);
color: #fff;
}
.json {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
line-height: 1.5;
background: #0f172a;
color: #e2e8f0;
border-radius: 12px;
padding: 12px;
overflow: auto;
max-height: 560px;
}
.notice {
margin-top: 8px;
font-size: 12px;
color: #64748b;
}
@media (max-width: 1000px) {
.shell {
grid-template-columns: 1fr;
}
.sidebar {
border-right: 0;
border-bottom: 1px solid #dbe1ec;
}
.grid {
grid-template-columns: 1fr;
}
}
.inline-note {
margin-top: 10px;
font-size: 12px;
color: #0f766e;
font-weight: 600;
}
.list-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
}
.list-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.list-item {
border: 1px solid #dbe1ec;
border-radius: 12px;
padding: 12px;
background: #fff;
}
.list-item h3 {
margin: 0 0 8px;
font-size: 16px;
}
.list-item p {
margin: 4px 0;
font-size: 13px;
color: #475569;
}
@media (max-width: 1000px) {
.list-grid {
grid-template-columns: 1fr;
}
.list-header {
flex-direction: column;
align-items: flex-start;
}
}
.json-input {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
line-height: 1.5;
background: #f8fafc;
}
.error-note {
margin-top: 8px;
font-size: 12px;
color: #b91c1c;
font-weight: 600;
}