@import "tailwindcss";
/* Design tokens */
@theme {
--color-brand-50: #f0fdf4;
--color-brand-100: #dcfce7;
--color-brand-200: #bbf7d0;
--color-brand-300: #86efac;
--color-brand-400: #4ade80;
--color-brand-500: #22c55e;
--color-brand-600: #16a34a;
--color-brand-700: #15803d;
--color-brand-800: #166534;
--color-brand-900: #14532d;
--color-brand-950: #052e16;
--color-surface-50: #f8fafc;
--color-surface-100: #f1f5f9;
--color-surface-200: #e2e8f0;
--color-surface-300: #cbd5e1;
--color-surface-400: #94a3b8;
--color-surface-500: #64748b;
--color-surface-600: #475569;
--color-surface-700: #334155;
--color-surface-800: #1e293b;
--color-surface-900: #0f172a;
--color-surface-950: #020617;
--color-success: #22c55e;
--color-warning: #f59e0b;
--color-error: #ef4444;
--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}
/* Base styles */
html {
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
background-color: var(--color-surface-50);
color: var(--color-surface-900);
margin: 0;
min-height: 100vh;
}
/* Ensure touch targets meet minimum 44px on mobile */
button, a, input[type="checkbox"], input[type="radio"], select {
min-height: 44px;
}
/* Make form inputs touch-friendly */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
min-height: 44px;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--color-surface-300);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--color-surface-400);
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.3s ease-out;
}
/* Utility */
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Mobile-first table wrapper */
.table-responsive {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border-radius: inherit;
}
/* Prevent text selection on buttons/touch targets */
.no-select-touch {
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
}
/* Safe area padding for notched phones */
@supports (padding: max(0px)) {
.safe-top {
padding-top: max(0px, env(safe-area-inset-top));
}
.safe-bottom {
padding-bottom: max(0px, env(safe-area-inset-bottom));
}
.safe-left {
padding-left: max(0px, env(safe-area-inset-left));
}
.safe-right {
padding-right: max(0px, env(safe-area-inset-right));
}
}