/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--color-app-bg);
    color: var(--color-text-body);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--color-primary-indigo);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-heading);
    font-weight: 600;
    line-height: 1.25;
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: 0.75rem;
}

p:last-child {
    margin-bottom: 0;
}

img, svg {
    vertical-align: middle;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Shared utilities used by Blade pages */
.text-muted { color: var(--color-text-muted); }
.text-danger { color: var(--color-error); }
.text-small { font-size: var(--font-size-sm); }
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}
.inline-form { display: inline; }
.inline-form + .inline-form { margin-left: var(--spacing-2); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mt-4 { margin-top: var(--spacing-4); }
