:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

/* Navigation */
.nav-link {
    color: #4b5563;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: #f3f4f6;
}

.dark .nav-link {
    color: #d1d5db;
}

.dark .nav-link:hover {
    background-color: #374151;
}

/* Dark mode */
.dark {
    color-scheme: dark;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-4 { margin-top: 1rem; }

.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

.min-h-screen { min-height: 100vh; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-between: space-between; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }

.h-16 { height: 4rem; }

.overflow-x-auto { overflow-x: auto; }

.divide-y > * + * { border-top-width: 1px; }

.transition-colors { transition-property: background-color, border-color, color; transition-duration: 0.2s; }

/* Responsive */
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex { display: flex; }
}

/* Tables */
table {
    border-collapse: collapse;
}

th {
    font-weight: 600;
    text-align: left;
}

/* Forms */
input, select, textarea {
    font-family: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select {
    border: 1px solid #d1d5db;
}

.dark input[type="text"],
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="url"],
.dark input[type="number"],
.dark select {
    background-color: #374151;
    border-color: #4b5563;
    color: white;
}

/* Colors */
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }

.bg-red-100 { background-color: #fee2e2; }
.bg-red-900 { background-color: #7f1d1d; }
.bg-green-100 { background-color: #d1fae5; }
.bg-green-900 { background-color: #064e3b; }

.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-white { color: white; }

.text-red-200 { color: #fecaca; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }

.text-green-200 { color: #bbf7d0; }
.text-green-600 { color: #16a34a; }
.text-green-800 { color: #166534; }

.text-blue-400 { color: #60a5fa; }
.text-blue-600 { color: #2563eb; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-700:hover { background-color: #374151; }

.dark .dark\:bg-gray-700 { background-color: #374151; }
.dark .dark\:bg-gray-800 { background-color: #1f2937; }
.dark .dark\:bg-gray-900 { background-color: #111827; }
.dark .dark\:bg-red-900 { background-color: #7f1d1d; }
.dark .dark\:bg-green-900 { background-color: #064e3b; }

.dark .dark\:text-white { color: white; }
.dark .dark\:text-gray-200 { color: #e5e7eb; }
.dark .dark\:text-gray-300 { color: #d1d5db; }
.dark .dark\:text-gray-400 { color: #9ca3af; }
.dark .dark\:text-red-200 { color: #fecaca; }
.dark .dark\:text-green-200 { color: #bbf7d0; }
.dark .dark\:text-blue-400 { color: #60a5fa; }

.dark .dark\:border-gray-600 { border-color: #4b5563; }
.dark .dark\:divide-gray-700 > * + * { border-color: #374151; }

.dark .dark\:hover\:bg-gray-700:hover { background-color: #374151; }

.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

@media (min-width: 768px) {
    .md\:flex { display: flex; }
}
