step 9.3: done

This commit is contained in:
bepis
2026-10-21 10:21:11 +11:00
parent d8a1e88150
commit cf725b40a2
16 changed files with 506 additions and 64 deletions
+165
View File
@@ -794,3 +794,168 @@ button:hover { background: #c73650; }
font-style: italic;
font-size: 0.8rem;
}
/* ===== Loading spinner ===== */
.spinner {
display: inline-block;
width: 1.25rem;
height: 1.25rem;
border: 2px solid var(--muted, #a59a8a);
border-top-color: var(--accent, #e2822b);
border-radius: 50%;
animation: spin 0.6s linear infinite;
vertical-align: middle;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Loading overlay for panels */
.loading-overlay {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.75rem;
padding: 2rem;
color: var(--muted, #a59a8a);
font-size: 0.875rem;
}
.loading-overlay .spinner {
width: 1.5rem;
height: 1.5rem;
}
/* ===== Toast notifications ===== */
.toast {
position: fixed;
bottom: 1.5rem;
left: 50%;
transform: translateX(-50%);
padding: 0.75rem 1.25rem;
border-radius: 6px;
font-size: 0.875rem;
color: #fff;
z-index: 1000;
animation: toastIn 0.3s ease;
max-width: 90vw;
text-align: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
pointer-events: none;
}
.toast-error {
background: #c0392b;
}
.toast-info {
background: #4a7fb0;
}
.toast-success {
background: #4f9d69;
}
@keyframes toastIn {
from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
/* ===== Button loading state ===== */
.btn[disabled] {
opacity: 0.65;
cursor: not-allowed;
}
.btn-loading {
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.btn-loading .spinner {
width: 0.875rem;
height: 0.875rem;
border-width: 1.5px;
}
/* ===== Error page shared ===== */
.error-page {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 60vh;
text-align: center;
padding: 2rem;
}
.error-code {
font-size: 6rem;
font-weight: bold;
color: var(--accent, #e2822b);
line-height: 1;
margin-bottom: 0.5rem;
}
.error-title {
font-size: 1.5rem;
color: var(--text, #eadfce);
margin-bottom: 1rem;
}
.error-message {
font-size: 1rem;
color: var(--muted, #a59a8a);
margin-bottom: 2rem;
max-width: 400px;
}
.error-actions {
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
}
.error-actions a,
.error-actions button {
display: inline-block;
padding: 0.5rem 1.25rem;
border-radius: 4px;
text-decoration: none;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
transition: opacity 0.2s;
border: none;
background: transparent;
color: inherit;
}
.error-actions a:hover,
.error-actions button:hover {
opacity: 0.85;
}
.btn-home {
background: var(--accent, #e2822b);
color: #fff;
}
.btn-back {
color: var(--accent, #e2822b);
border: 1px solid var(--accent, #e2822b);
}
.btn-retry {
color: var(--accent, #e2822b);
border: 1px solid var(--accent, #e2822b);
}
.btn-retry:hover {
background: var(--accent, #e2822b);
color: #fff;
}