* {
    box-sizing: border-box;
}

html, body {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #0f1117;
    color: #f5f5f5;
    margin: 0;
}

a {
    color: inherit;
}

h1, h2, h3 {
    margin: 0 0 0.5rem;
}

p {
    margin: 0.25rem 0 0;
}

.page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-center {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header p {
    color: #9aa4b2;
}

.page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.page-header .primary {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 0;
}

.card {
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

.input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0e0e0e;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    color: #f5f5f5;
    font-size: 1rem;
}

.input:focus {
    outline: none;
    border-color: #ff3b3b;
    box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.2);
}

.input-sm {
    max-width: 110px;
}

.primary {
    background: #ff3b3b;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
}

.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    border-radius: 14px;
    padding: 0.6rem 1rem;
    cursor: pointer;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #101010;
    border-radius: 14px;
    border: 1px solid #2a2a2a;
}

.list-item.done {
    background: #10331a;
    border-color: #1f6b38;
}

.item-title {
    font-weight: 600;
}

.item-subtitle {
    color: #bdbdbd;
    font-size: 0.85rem;
}

.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.checkbox-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #f0f0f0;
}

.muted {
    color: #bdbdbd;
}

.input-unit {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.input-unit .unit {
    padding: 0.4rem 0.6rem;
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.85rem;
}

#blazor-error-ui {
    color-scheme: dark;
    background: #1f2937;
    color: #f8fafc;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.loading-screen {
    position: absolute;
    inset: 20vh 0 auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-screen img {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.loading-progress-text {
    text-align: center;
    font-weight: bold;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

@media (min-width: 640px) {
    .form-row {
        flex-direction: row;
    }
}