@tailwind base; @tailwind components; @tailwind utilities; :root { --border-radius: 8px; --transition: all 0.3s ease; --shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } /* Global styles can be added as Tailwind utility classes or custom classes */ body { @apply bg-hmi-bg text-hmi-text font-hmi; } /* Scrollbar: wide enough to grab on touch, square corners */ ::-webkit-scrollbar { @apply w-3 h-3 bg-hmi-bg; } ::-webkit-scrollbar-thumb { @apply bg-hmi-line; } ::-webkit-scrollbar-thumb:hover { @apply bg-hmi-muted; } /* Keep the date picker icon visible on dark backgrounds */ input[type='date']::-webkit-calendar-picker-indicator { filter: invert(0.8); } /* Operator panel (dark industrial theme) */ @layer components { /* Ignored cell: color-independent cross-hatch pattern */ .hmi-hatch { background-color: theme('colors.hmi.panel'); background-image: repeating-linear-gradient( 135deg, rgba(145, 151, 160, 0.28) 0 2px, transparent 2px 9px ); } /* Active cell: only the outer border blinks, not the cell itself */ .hmi-active-ring { animation: hmi-ring 1.2s ease-in-out infinite; } .hmi-press-progress { animation-name: hmi-progress; animation-timing-function: linear; animation-fill-mode: forwards; } } @keyframes hmi-ring { 0%, 100% { box-shadow: 0 0 0 2px theme('colors.hmi.bg'), 0 0 0 5px rgba(250, 204, 21, 1); } 50% { box-shadow: 0 0 0 2px theme('colors.hmi.bg'), 0 0 0 5px rgba(250, 204, 21, 0.1); } } @keyframes hmi-progress { from { width: 0; } to { width: 100%; } } @media (prefers-reduced-motion: reduce) { .hmi-active-ring { animation: none; box-shadow: 0 0 0 2px theme('colors.hmi.bg'), 0 0 0 5px theme('colors.hmi.warn'); } } /* Notifications match the panel style: square corners, bordered */ .Toastify { --toastify-color-dark: theme('colors.hmi.raised'); --toastify-text-color-dark: theme('colors.hmi.text'); --toastify-color-success: theme('colors.hmi.ok'); --toastify-color-error: theme('colors.hmi.err'); --toastify-color-progress-dark: theme('colors.hmi.accent'); --toastify-font-family: inherit; } .Toastify .Toastify__toast { border-radius: 0; border: 1px solid theme('colors.hmi.line'); font-size: 15px; }