html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.clinic-shell {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.clinic-navbar {
    background: linear-gradient(180deg, #1e3a5f 0%, #152b47 100%);
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .sidebar {
        width: 100%;
    }

    .clinic-shell {
        flex-direction: column;
    }
}

.top-row {
    min-height: 3rem;
}

.converter-page .card {
    border-radius: .75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.converter-page .card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.08) !important;
}

.drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.75rem;
    padding: 2.5rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: #0d6efd;
    background-color: #e9ecef;
}

.drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.resource-card {
    border-left: 4px solid #0d6efd;
    margin-bottom: 1rem;
}

.resource-card.patient { border-color: #0d6efd; }
.resource-card.clinical { border-color: #198754; }
.resource-card.medication { border-color: #ffc107; }

.progress {
    height: 0.75rem;
    border-radius: 1rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 2rem;
}

.error-list {
    max-height: 400px;
    overflow-y: auto;
}

.table-sm th {
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%);
}

/* Alert styling with shadow hierarchy */
.alert {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
}

.alert-success {
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.alert-danger {
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.alert-warning {
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

/* Validation result status colors */
.validation-passed {
    color: #198754;
    font-weight: 600;
}

.validation-failed {
    color: #dc3545;
    font-weight: 600;
}

/* Blazor Error Notification Bar Style - Fixed at Top */
#blazor-error-ui {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #dc3545;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
}

#blazor-error-ui .reload {
    color: white;
    font-weight: bold;
    text-decoration: underline;
    margin: 0 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
}

#blazor-error-ui.show {
    display: block;
}

/* Loading indicator styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e9ecef;
    border-top: 5px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

/* "3 步开始" quick-start strip (Components/QuickStartSteps.razor) */
.quickstart-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; }
.quickstart-step { display: flex; gap: .75rem; align-items: flex-start; padding: .5rem .75rem; border-radius: .5rem; border: 1px solid var(--bs-border-color, #dee2e6); }
.quickstart-step.current { border-color: var(--bs-primary, #0d6efd); background: rgba(13, 110, 253, .05); }
.quickstart-step.done { opacity: .75; }
.quickstart-num { flex: 0 0 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; background: var(--bs-secondary-bg, #e9ecef); }
.quickstart-step.current .quickstart-num { background: var(--bs-primary, #0d6efd); color: #fff; }
.quickstart-step.done .quickstart-num { background: var(--bs-success, #198754); color: #fff; }
