396 lines
6.1 KiB
CSS
396 lines
6.1 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
background: #0f172a;
|
|
color: #f8fafc;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
padding: 2rem 1rem;
|
|
background: #0f172a;
|
|
}
|
|
|
|
.container {
|
|
width: min(960px, 100%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.card {
|
|
background: rgba(15, 23, 42, 0.8);
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
border-radius: 16px;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
.card h1,
|
|
.card h2,
|
|
.card h3 {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.subtitle {
|
|
color: #94a3b8;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.tab-button {
|
|
flex: 1;
|
|
padding: 0.75rem;
|
|
background: rgba(148, 163, 184, 0.1);
|
|
border: none;
|
|
border-radius: 12px;
|
|
color: inherit;
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.tab-button.active {
|
|
background: #38bdf8;
|
|
color: #0f172a;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.input-group {
|
|
display: grid;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.input-label {
|
|
font-size: 0.85rem;
|
|
color: #cbd5f5;
|
|
}
|
|
|
|
.image-mode {
|
|
display: inline-flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.image-mode label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
font-size: 0.85rem;
|
|
color: #cbd5f5;
|
|
}
|
|
|
|
.form.compact label {
|
|
display: grid;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
label {
|
|
font-size: 0.85rem;
|
|
color: #cbd5f5;
|
|
}
|
|
|
|
input,
|
|
textarea,
|
|
select,
|
|
button {
|
|
font: inherit;
|
|
}
|
|
|
|
input,
|
|
textarea,
|
|
select {
|
|
padding: 0.65rem 0.75rem;
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(148, 163, 184, 0.4);
|
|
background: rgba(15, 23, 42, 0.6);
|
|
color: inherit;
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
}
|
|
|
|
input[type='number']::-webkit-inner-spin-button,
|
|
input[type='number']::-webkit-outer-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
input[type='number'] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
button {
|
|
padding: 0.75rem;
|
|
border-radius: 12px;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
button.primary {
|
|
background: linear-gradient(135deg, #38bdf8, #0369a1);
|
|
color: #0f172a;
|
|
font-weight: 600;
|
|
box-shadow: 0 10px 20px rgba(56, 189, 248, 0.25);
|
|
}
|
|
|
|
button.ghost {
|
|
background: transparent;
|
|
border: 1px solid rgba(148, 163, 184, 0.4);
|
|
color: inherit;
|
|
}
|
|
|
|
button.ghost.accent {
|
|
border-color: rgba(56, 189, 248, 0.6);
|
|
color: #38bdf8;
|
|
background: rgba(56, 189, 248, 0.08);
|
|
}
|
|
|
|
button.ghost.accent:hover {
|
|
background: rgba(56, 189, 248, 0.16);
|
|
}
|
|
|
|
button.ghost.accent.active {
|
|
background: rgba(56, 189, 248, 0.24);
|
|
color: #0f172a;
|
|
}
|
|
|
|
button:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
.form-error {
|
|
min-height: 1.1rem;
|
|
color: #f87171;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.card > * + * {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.top-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
.top-bar h1 {
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
#user-username {
|
|
color: #94a3b8;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.top-bar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
button.small {
|
|
padding: 0.55rem 0.9rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.view-section {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.summary-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: 1rem;
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
.forms-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.stat {
|
|
font-size: 1.1rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
list-style: none;
|
|
}
|
|
|
|
.list.compact {
|
|
gap: 0.5rem;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.list-item {
|
|
background: rgba(15, 23, 42, 0.6);
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
border-radius: 12px;
|
|
padding: 0.5rem 1rem 1rem 1rem;
|
|
display: grid;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.list-item.clickable {
|
|
cursor: pointer;
|
|
transition: border-color 0.2s ease, background 0.2s ease;
|
|
}
|
|
|
|
.list-item.clickable:hover {
|
|
border-color: rgba(56, 189, 248, 0.6);
|
|
background: rgba(15, 23, 42, 0.75);
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
background: rgba(56, 189, 248, 0.15);
|
|
color: #38bdf8;
|
|
border-radius: 999px;
|
|
padding: 0.25rem 0.6rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.defense-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding-top: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
#defense-log-card {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.defense-meta {
|
|
font-size: 0.85rem;
|
|
color: #94a3b8;
|
|
display: flex;
|
|
gap: 1rem;
|
|
padding-bottom: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
#base-detail-view,
|
|
#category-detail-view {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.detail-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.detail-created {
|
|
font-size: 0.85rem;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.detail-links {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.detail-links a {
|
|
color: #38bdf8;
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.detail-links a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.detail-image {
|
|
margin-top: 1rem;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
}
|
|
|
|
.detail-image img {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.styled-number {
|
|
appearance: textfield;
|
|
padding-right: 2.75rem;
|
|
background-image: linear-gradient(-135deg, rgba(56, 189, 248, 0) 50%, rgba(56, 189, 248, 0.8) 50%),
|
|
linear-gradient(45deg, rgba(56, 189, 248, 0) 50%, rgba(56, 189, 248, 0.8) 50%);
|
|
background-repeat: no-repeat;
|
|
background-size: 12px 12px;
|
|
background-position: calc(100% - 0.85rem) 0.9rem, calc(100% - 0.85rem) calc(100% - 0.9rem);
|
|
}
|
|
|
|
.styled-number:focus {
|
|
border-color: rgba(56, 189, 248, 0.8);
|
|
}
|
|
|
|
.muted {
|
|
color: #94a3b8;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
body {
|
|
padding: 1.5rem 1rem;
|
|
}
|
|
|
|
.card {
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.tabs {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.tab-button {
|
|
width: 100%;
|
|
}
|
|
}
|