/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f9fafb;
    color: #374151;
    line-height: 1.6;
}

/* Layout Utilities */
.container {
    min-height: 100vh;
    padding: 1rem;
}

.max-w-7xl {
    max-width: 80rem;
    margin: 0 auto;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-1 {
    flex: 1 1 0%;
}

/* Grid System */
.grid {
    display: grid;
}

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

@media (min-width: 1024px) {
    .lg\\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* Gap Utilities */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Space Utilities */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* Typography */
h1 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

/* Text Colors */
.text-gray-600 {
    color: #6b7280;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-900 {
    color: #111827;
}

.text-blue-500 {
    color: #3b82f6;
}

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

.text-blue-700 {
    color: #1d4ed8;
}

.text-green-500 {
    color: #10b981;
}

.text-green-600 {
    color: #059669;
}

.text-green-800 {
    color: #065f46;
}

.text-red-600 {
    color: #dc2626;
}

.text-red-800 {
    color: #991b1b;
}

.text-purple-800 {
    color: #6b21a8;
}

.text-orange-800 {
    color: #9a3412;
}

/* Text Sizes */
.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-3xl {
    font-size: 1.875rem;
}

/* Font Weights */
.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

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

/* Text Alignment */
.text-center {
    text-align: center;
}

/* Background Colors */
.bg-blue-500 { 
    background-color: #3b82f6; 
}

.bg-green-500 { 
    background-color: #10b981; 
}

.bg-yellow-500 { 
    background-color: #f59e0b; 
}

.bg-purple-500 { 
    background-color: #8b5cf6; 
}

.bg-red-500 { 
    background-color: #ef4444; 
}

.bg-gray-400 { 
    background-color: #9ca3af; 
}

.bg-blue-50 { 
    background-color: #eff6ff; 
}

.bg-green-50 { 
    background-color: #ecfdf5; 
}

.bg-purple-50 { 
    background-color: #faf5ff; 
}

.bg-orange-50 { 
    background-color: #fff7ed; 
}

.bg-red-50 { 
    background-color: #fef2f2; 
}

.bg-gray-50 { 
    background-color: #f9fafb; 
}

.bg-gray-200 { 
    background-color: #e5e7eb; 
}

/* Margin Utilities */
.mb-2 { 
    margin-bottom: 0.5rem; 
}

.mb-3 { 
    margin-bottom: 0.75rem; 
}

.mb-4 { 
    margin-bottom: 1rem; 
}

.mb-6 { 
    margin-bottom: 1.5rem; 
}

.mt-2 { 
    margin-top: 0.5rem; 
}

.mt-3 { 
    margin-top: 0.75rem; 
}

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

.ml-1 { 
    margin-left: 0.25rem; 
}

.ml-2 { 
    margin-left: 0.5rem; 
}

/* Padding Utilities */
.p-2 { 
    padding: 0.5rem; 
}

.p-3 { 
    padding: 0.75rem; 
}

.p-4 { 
    padding: 1rem; 
}

.px-2 { 
    padding-left: 0.5rem; 
    padding-right: 0.5rem; 
}

.px-3 { 
    padding-left: 0.75rem; 
    padding-right: 0.75rem; 
}

.px-4 { 
    padding-left: 1rem; 
    padding-right: 1rem; 
}

.px-6 { 
    padding-left: 1.5rem; 
    padding-right: 1.5rem; 
}

.py-1 { 
    padding-top: 0.25rem; 
    padding-bottom: 0.25rem; 
}

.py-2 { 
    padding-top: 0.5rem; 
    padding-bottom: 0.5rem; 
}

.py-3 { 
    padding-top: 0.75rem; 
    padding-bottom: 0.75rem; 
}

/* Border Radius */
.rounded { 
    border-radius: 0.25rem; 
}

.rounded-lg { 
    border-radius: 0.5rem; 
}

.rounded-full { 
    border-radius: 9999px; 
}

/* Opacity */
.opacity-50 { 
    opacity: 0.5; 
}

.opacity-75 { 
    opacity: 0.75; 
}

/* Width and Height */
.w-full {
    width: 100%;
}

.w-3 { 
    width: 0.75rem; 
}

.h-3 { 
    height: 0.75rem; 
}

.w-2 { 
    width: 0.5rem; 
}

.h-2 { 
    height: 0.5rem; 
}

/* Icons */
.icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
}

.icon-lg {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-xl {
    width: 1.5rem;
    height: 1.5rem;
}

/* Animations */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(360deg); 
    }
}

/* Authentication Styles */
.auth-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-modal {
    background: white;
    border-radius: 0.5rem;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.z-50 {
    z-index: 50;
}

.top-full {
    top: 100%;
}

.right-0 {
    right: 0;
}

.mt-2 {
    margin-top: 0.5rem;
}

.min-w-48 {
    min-width: 12rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-color: #e5e7eb;
}

.w-full {
    width: 100%;
}

.text-left {
    text-align: left;
}