@tailwind base;@tailwind components;@tailwind utilities;:root{--color-primary: #0d2240;--color-primary-light: #3a659d;--color-accent: #1A7F8E;--color-accent-light: #e3f4f6;--color-sync-green: #16a34a;--color-sync-amber: #d97706;--color-sync-red: #dc2626;--color-sleshi-teal: #0e7490;--color-status-critical: #dc2626;--color-status-warning: #d97706;--color-status-safe: #16a34a;--color-status-info: #1A7F8E;--min-touch-target: 48px}.dark{--color-sync-green: #22c55e;--color-sync-amber: #f59e0b;--color-sync-red: #ef4444;--color-sleshi-teal: #22d3ee;--color-status-critical: #ef4444;--color-status-warning: #f59e0b;--color-status-safe: #22c55e;--color-status-info: #3db0bc;--color-accent: #3db0bc;--color-accent-light: #053440;color-scheme:dark}@layer base{html{font-family:Noto Sans,Inter,system-ui,sans-serif}body{@apply bg-gray-50 text-gray-900 dark:bg-black dark:text-gray-100 antialiased;font-size:.875rem;line-height:1.375rem}}@layer components{.btn-primary{@apply inline-flex items-center justify-center gap-2 px-4 py-2 bg-accent-500 text-white text-sm font-semibold rounded-lg hover:bg-accent-600 focus:outline-none focus:ring-2 focus:ring-accent-400 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed transition-colors;min-height:var(--min-touch-target)}.btn-secondary{@apply inline-flex items-center justify-center gap-2 px-4 py-2 bg-white dark:bg-gray-800 text-primary-700 dark:text-gray-200 text-sm font-semibold rounded-lg border border-primary-200 dark:border-gray-600 hover:bg-primary-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-accent-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 disabled:opacity-50 disabled:cursor-not-allowed transition-colors;min-height:var(--min-touch-target)}.btn-danger{@apply inline-flex items-center justify-center gap-2 px-4 py-2 bg-red-600 text-white text-sm font-semibold rounded-lg hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed transition-colors;min-height:var(--min-touch-target)}.btn-sm{@apply inline-flex items-center justify-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg transition-colors;min-height:44px}.input{@apply block w-full rounded-lg border border-primary-200 dark:border-gray-600 bg-white dark:bg-gray-800 px-3 py-2 text-sm text-primary-800 dark:text-gray-100 placeholder-primary-300 dark:placeholder-gray-500 focus:border-accent-500 focus:outline-none focus:ring-1 focus:ring-accent-500 disabled:bg-gray-100 dark:disabled:bg-gray-700 disabled:cursor-not-allowed;min-height:var(--min-touch-target)}.label{@apply block text-sm font-semibold text-primary-700 dark:text-gray-300 mb-1;}.card{@apply bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-primary-100 dark:border-gray-700 p-4;}.field-sleshi{border-left:3px solid var(--color-sleshi-teal);@apply pl-3 bg-cyan-50/50;}.sync-dot{@apply inline-block h-2 w-2 rounded-full shrink-0;}.sync-dot-green{background-color:var(--color-sync-green)}.sync-dot-amber{background-color:var(--color-sync-amber)}.sync-dot-red{background-color:var(--color-sync-red);animation:pulse-dot 2s ease-in-out infinite}.triage-emergency{@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold bg-red-100 text-red-800 border border-red-200;}.triage-urgent{@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold bg-orange-100 text-orange-800 border border-orange-200;}.triage-semi_urgent{@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold bg-yellow-100 text-yellow-800 border border-yellow-200;}.triage-routine{@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold bg-green-100 text-green-800 border border-green-200;}}@keyframes pulse-dot{0%,to{opacity:1}50%{opacity:.4}}.chw-mode body,.chw-mode .chw-form-content{font-size:1.125rem;line-height:1.75rem}.chw-mode .input{font-size:1.125rem;min-height:56px;@apply rounded-xl;}.chw-mode .label{font-size:1rem;@apply font-semibold mb-2;}.chw-mode .btn-primary,.chw-mode .btn-secondary,.chw-mode .btn-danger{min-height:56px;font-size:1.125rem;@apply rounded-xl;}.chw-mode .card{@apply rounded-2xl p-6;}.power-saver *,.power-saver *:before,.power-saver *:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}.oled body,.oled .bg-gray-50{background-color:#000!important}.oled .card,.oled .bg-white{background-color:#0a0a0a!important}.oled .border-primary-100,.oled .border-gray-200{border-color:#1a1a1a!important}@keyframes shake{0%,to{transform:translate(0)}20%{transform:translate(-10px)}40%{transform:translate(10px)}60%{transform:translate(-6px)}80%{transform:translate(6px)}}.animate-shake{animation:shake .5s ease-in-out}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{@apply bg-gray-100 dark:bg-gray-800;}::-webkit-scrollbar-thumb{@apply bg-gray-300 dark:bg-gray-600 rounded;}::-webkit-scrollbar-thumb:hover{@apply bg-gray-400 dark:bg-gray-500;}.safe-area-bottom{padding-bottom:env(safe-area-inset-bottom,0px)}@media print{.no-print,nav,aside,header,.feedback-btn,.mobile-bottom-nav{display:none!important}body{@apply bg-white text-black;font-size:12pt;line-height:1.4}.card{box-shadow:none;border:1px solid #e5e7eb;break-inside:avoid}.print-only{display:block!important}.encounter-print-header{border-bottom:2px solid #000;padding-bottom:8px;margin-bottom:16px}.encounter-print-header h1{font-size:16pt;font-weight:700}.encounter-print-section{break-inside:avoid;margin-bottom:12pt}.encounter-print-section h2{font-size:13pt;font-weight:700;border-bottom:1px solid #ccc;padding-bottom:4px;margin-bottom:8px}}.print-only{display:none}
