html, body {
    font-family: Segoe UI, Tahoma, Arial, sans-serif;
    background: #f2f2f2;
    margin: 0;
}

.loading-splash {
    padding: 2rem;
    color: #444;
}

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

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.app-header {
    background: #2d2d30;
    color: white;
    padding: 12px 20px;
}

.app-header h1 {
    margin: 0;
    font-size: 1.3rem;
}

.app-header .subtitle {
    font-size: 0.85rem;
    color: #bbb;
}

.tab-bar {
    display: flex;
    background: #e6e6e6;
    border-bottom: 1px solid #ccc;
}

.tab-bar button {
    background: none;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
}

.tab-bar button.active {
    border-bottom: 3px solid #2d6cdf;
    font-weight: 600;
    background: white;
}

.panel {
    padding: 16px 20px;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.field-row label {
    min-width: 130px;
    font-weight: 600;
}

.field-row input[type="number"], .field-row input[type="text"], .field-row select {
    padding: 4px 6px;
    width: 110px;
}

.button-row {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

button.action {
    padding: 6px 16px;
    background: #2d6cdf;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

button.action:hover {
    background: #1d54b8;
}

button.action:disabled {
    background: #99b3d9;
    cursor: not-allowed;
}

.text-columns {
    display: flex;
    gap: 12px;
}

.text-columns > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.text-columns textarea {
    width: 100%;
    height: 380px;
    box-sizing: border-box;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.85rem;
    resize: vertical;
}

.error-box {
    background: #fdecea;
    color: #611a15;
    border: 1px solid #f5c6cb;
    padding: 8px 12px;
    border-radius: 3px;
    margin: 8px 0;
}

.hint {
    color: #666;
    font-size: 0.8rem;
}
