/* SHMAHEO Pro - stable scientific workspace foundation */
:root {
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --accent: #0f766e;
    --success: #15803d;
    --warning: #b45309;
    --text-primary: #172033;
    --text-secondary: #52627a;
    --text-muted: #77849a;
    --border: #dfe5ee;
    --surface: #ffffff;
    --surface-muted: #f7f9fc;
    --page: #f3f6fa;
    --shadow-sm: 0 1px 3px rgba(20, 35, 60, 0.06);
    --shadow-md: 0 8px 24px rgba(20, 35, 60, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background: var(--page);
    color: var(--text-primary);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font-family: inherit; }
a { color: var(--primary); }
#particle-canvas, #hero-canvas { display: none !important; }

*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #c5cfdd; border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: #9eacc0; }
* { scrollbar-width: thin; scrollbar-color: #c5cfdd transparent; }

.glass-card, .surface-panel {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}
.glass-card:hover { box-shadow: var(--shadow-md) !important; }
.page-heading { margin: 0; color: var(--text-primary); font-size: 28px; line-height: 1.2; font-weight: 700; }
.page-kicker { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.muted-copy { color: var(--text-muted); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fadeIn 0.25s ease both; }

._dash-loading {
    color: transparent;
    position: fixed; width: 56px; height: 56px;
    top: 50vh; left: 50vw; transform: translate(-50%, -50%);
}
._dash-loading::before {
    content: ''; display: block; width: 34px; height: 34px;
    border: 3px solid #dbe4f0; border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ant-btn { border-radius: var(--radius-sm) !important; }
.ant-btn-primary { background: var(--primary) !important; border-color: var(--primary) !important; }
.ant-btn-primary:hover { background: var(--primary-hover) !important; border-color: var(--primary-hover) !important; }
.ant-input, .ant-select-selector { border-radius: var(--radius-sm) !important; }
.ant-divider { border-color: var(--border) !important; }
.ant-back-top { right: 22px !important; bottom: 22px !important; }

@media (max-width: 767px) {
    .page-heading { font-size: 23px; }
    .ant-back-top { right: 14px !important; bottom: 56px !important; }
}
