:root {
    /* Color palette */
    --primary-color: #FF5A5F;
    --primary-light: #FFE5E6;
    --secondary-color: #3B72E0;
    --secondary-light: #EDF2FF;
    --success-color: #00BFA5;
    --success-light: #E0F7F5;
    --warning-color: #FFA726;
    --warning-light: #FFF4E6;
    --danger-color: #FF5252;
    --danger-light: #FFEBEE;
    /* Neutral colors */
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #EEEEEE;
    --neutral-300: #E0E0E0;
    --neutral-400: #BDBDBD;
    --neutral-500: #9E9E9E;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;
    /* Border radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Animations */
    --transition-base: all 0.2s ease-in-out;
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-md: 1rem; /* 16px */
    --font-size-lg: 1.125rem; /* 18px */
    --font-size-xl: 1.25rem; /* 20px */
    --font-size-2xl: 1.5rem; /* 24px */
    /* Font weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    /* Z-index levels */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
}

html, body {
    font-family: var(--font-family);
    background-color: var(--neutral-50);
    color: var(--neutral-900);
    line-height: var(--line-height-normal);
    font-size: var(--font-size-md);
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-semibold);
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

/* Common utility classes */
.thin-font {
    font-weight: var(--font-weight-light);
    letter-spacing: 0.01em;
}

.text-sm {
    font-size: var(--font-size-sm);
}

.text-xs {
    font-size: var(--font-size-xs);
}

.text-lg {
    font-size: var(--font-size-lg);
}

.text-xl {
    font-size: var(--font-size-xl);
}

.text-2xl {
    font-size: var(--font-size-2xl);
}

.text-muted {
    color: var(--neutral-600);
}

.shadow-hover {
    transition: var(--transition-base);
}

    .shadow-hover:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Common form controls */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    transition: var(--transition-base);
    font-size: var(--font-size-sm);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

    .btn-primary:hover {
        background-color: #3464c7;
        box-shadow: var(--shadow-sm);
    }

.btn-secondary {
    background-color: var(--neutral-200);
    color: var(--neutral-800);
}

    .btn-secondary:hover {
        background-color: var(--neutral-300);
    }

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

    .btn-danger:hover {
        background-color: #e54848;
    }

.btn-submit {
    background-color: var(--primary-color);
    color: white;
}

    .btn-submit:hover {
        background-color: #e54949;
    }

/* Layout helpers */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Card component */
.card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    background-color: var(--neutral-100);
}

.card-body {
    padding: 1.5rem;
}

/* Table styles */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--font-size-sm);
}

    .table th {
        background-color: var(--neutral-100);
        font-weight: var(--font-weight-medium);
        text-align: left;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--neutral-200);
    }

    .table td {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--neutral-200);
        vertical-align: middle;
    }

    .table tr:last-child td {
        border-bottom: none;
    }

    .table tbody tr:hover {
        background-color: var(--neutral-50);
    }

/* Alert styles */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success-color);
}

.alert-danger {
    background-color: var(--danger-light);
    color: var(--danger-color);
}

.alert-warning {
    background-color: var(--warning-light);
    color: var(--warning-color);
}

/* Form styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    color: var(--neutral-800);
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
    font-family: inherit;
}

    .form-control:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px var(--secondary-light);
    }

/* Responsive utilities */
@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}
