/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Utility classes */
.min-h-screen {
    min-height: 100vh;
}

.bg-gradient-to-br {
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
}

.from-blue-50 {
    --tw-gradient-from: #eff6ff;
}

.to-indigo-100 {
    --tw-gradient-to: #e0e7ff;
}

.p-4 {
    padding: 1rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

.mb-8 {
    margin-bottom: 2rem;
}

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

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

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

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

.flex {
    display: flex;
}

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

.justify-center {
    justify-content: center;
}

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

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.grid {
    display: grid;
}

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

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

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

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

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

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

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

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

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

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

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

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

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

.text-blue-100 {
    color: #dbeafe;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-500 {
    color: #22c55e;
}

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

.text-gray-300 {
    color: #d1d5db;
}

.text-white {
    color: #ffffff;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-none {
    max-width: none;
}

.h-10 {
    height: 2.5rem;
}

.w-10 {
    width: 2.5rem;
}

.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

.h-8 {
    height: 2rem;
}

.w-8 {
    width: 2rem;
}

.w-32 {
    width: 8rem;
}

.w-full {
    width: 100%;
}

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

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

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

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

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

.p-6 {
    padding: 1.5rem;
}

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

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

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

.rounded-t-lg {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.border-0 {
    border-width: 0;
}

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

.border-l-4 {
    border-left-width: 4px;
}

.border-l-green-500 {
    border-left-color: #22c55e;
}

.border-l-blue-500 {
    border-left-color: #3b82f6;
}

.border-l-gray-500 {
    border-left-color: #6b7280;
}

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

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

.capitalize {
    text-transform: capitalize;
}

.hidden {
    display: none;
}

/* Card components */
.card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.875rem;
    opacity: 0.8;
}

.card-content {
    background-color: white;
}

/* Form elements */
input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Button */
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    color: white;
}

#calculateBtn {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
    font-size: 1.125rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

#calculateBtn:hover {
    background: linear-gradient(to right, #1d4ed8, #4338ca);
}

/* Tabs */
.tabs-list {
    display: grid;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    padding: 0.25rem;
}

.tab-trigger {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.tab-trigger.active {
    background-color: white;
    color: #111827;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.tab-trigger:hover {
    color: #111827;
}

.tab-content {
    margin-top: 1rem;
}

/* Gradients */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-600 {
    --tw-gradient-from: #2563eb;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.to-indigo-600 {
    --tw-gradient-to: #4f46e5;
}

.from-gray-800 {
    --tw-gradient-from: #1f2937;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(31, 41, 55, 0));
}

.to-gray-900 {
    --tw-gradient-to: #111827;
}

/* Responsive design */
@media (max-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .text-4xl {
        font-size: 2rem;
        line-height: 2.25rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .p-4 {
        padding: 0.5rem;
    }
    
    .p-6 {
        padding: 1rem;
    }
}

/* Prose styles for content */
.prose {
    color: #374151;
}

.prose h3, .prose h4 {
    color: #111827;
    font-weight: 600;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    list-style: none;
    padding-left: 0;
}

.prose li {
    margin-bottom: 0.25rem;
}

