:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --border: #e5e7eb;
    --success: #059669;
    --danger: #dc2626;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Figtree", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #818cf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

button {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid var(--border);
    padding: 8px 10px;
}

th {
    background: #f8fafc;
    color: #334155;
}

.rounded-2xl,
.rounded-xl,
.sm\:rounded-lg {
    border-radius: 14px !important;
}

.shadow-sm,
.shadow-md,
.shadow-xl {
    box-shadow: var(--shadow) !important;
}

.bg-white {
    background: var(--surface) !important;
}

.text-rose-600 {
    color: var(--danger) !important;
}

.text-emerald-700,
.text-emerald-600 {
    color: var(--success) !important;
}

/* Auth screens */
.min-h-screen.grid.place-items-center {
    background: radial-gradient(circle at top left, #eef2ff 0%, #f5f7fb 45%, #ecfeff 100%);
}

/* Better spacing for action controls */
.flex.gap-2 > * {
    margin-right: 8px;
}

.flex.gap-2 > *:last-child {
    margin-right: 0;
}
