/* 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: #111827;
    background-color: #ffffff;
}

/* Layout utilities */
.max-w-7xl {
    max-width: 80rem;
}

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

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

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

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

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

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

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

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

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

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

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

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

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

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

.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;
}

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

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

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

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

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

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

/* Typography */
.text-center {
    text-align: center;
}

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

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

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

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

.text-2xs {
    font-size: 0.625rem;
    line-height: 1rem;
}

.text-xs-sm {
    font-size: 0.7rem;
    line-height: 1.1rem;
}

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

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

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

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

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

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

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

.text-gray-100 {
    color: #f3f4f6;
}

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

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

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

.text-blue-800 {
    color: #1e40af;
}

.text-white {
    color: #ffffff;
}

.bg-white {
    background-color: #ffffff;
}

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

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

.bg-red-700 {
    background-color: #b91c1c;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

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

.border-gray-200 {
    border-color: #e5e7eb;
}

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

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

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

/* Shadows */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Form elements */
input[type="text"] {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

button {
    padding: 0.5rem 1.5rem;
    background-color: #991b1b;
    color: #ffffff;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #b91c1c;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding-left: 0;
}

a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e5e7eb;
}

/* Footer */
footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

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

.from-red-800 {
    --tw-gradient-from: #991b1b;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(153, 27, 27, 0));
}

.to-red-700 {
    --tw-gradient-to: #b91c1c;
}

/* Responsive design */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .sm\:w-auto {
        width: auto;
    }
    
    .sm\:space-y-0 > * + * {
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md\:items-center {
        align-items: center;
    }
    
    .md\:justify-start {
        justify-content: flex-start;
    }
    
    .md\:justify-between {
        justify-content: space-between;
    }
    
    .md\:space-y-0 > * + * {
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .lg\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }
    
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

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

.w-full {
    width: 100%;
}

.w-24 {
    width: 6rem;
}

.w-12 {
    width: 3rem;
}

.max-w-3xl {
    max-width: 48rem;
}

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

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

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

.inline-flex {
    display: inline-flex;
}

.hidden {
    display: none;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prose styles for content */
.prose {
    color: #374151;
    max-width: 65ch;
}

.prose-gray {
    color: #6b7280;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #111827;
    font-weight: 600;
    line-height: 1.25;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Space utilities */
.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-1 > * + * {
    margin-left: 0.25rem;
}

/* Padding utilities */
.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

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

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

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

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

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

.pt-3 {
    padding-top: 0.75rem;
}

/* Margin utilities */
.mt-3 {
    margin-top: 0.75rem;
}

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

/* Hover effects */
.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hover\:bg-red-700:hover {
    background-color: #b91c1c;
}

/* Text utilities */
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

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

/* Background colors */
.bg-red-600 {
    background-color: #dc2626;
}

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

/* Border utilities */
.border-gray-200 {
    border-color: #e5e7eb;
}

/* Number formatting */
.number-format {
    font-variant-numeric: tabular-nums;
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

/* Table styles */
table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    min-width: 100%;
}

th, td {
    padding: 0.25rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

/* Allow text wrapping for content columns */
th:nth-child(1), td:nth-child(1),
th:nth-child(2), td:nth-child(2),
th:nth-child(3), td:nth-child(3) {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-wrap: break-word;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
}

/* Override header background for custom theme */
thead th {
    background-color: #F5C7B8 !important;
}

td {
    font-size: 0.875rem;
    color: #374151;
}

tr:hover {
    background-color: #f9fafb;
}

.w-32 {
    width: 8rem !important;
    min-width: 8rem;
}

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

/* Specific column widths for table */
table th:nth-child(1) {
    width: 12rem !important;
    min-width: 12rem;
}

table th:nth-child(2) {
    width: 18rem !important;
    min-width: 18rem;
}

table th:nth-child(3) {
    width: 10rem !important;
    min-width: 10rem;
}

/* Overflow utilities */
.overflow-x-auto {
    overflow-x: auto;
}

/* Divide utilities */
.divide-y > * + * {
    border-top-width: 1px;
    border-top-color: #e5e7eb;
}

.divide-y > *:first-child {
    border-top-width: 0;
}

/* Grid utilities for mobile cards */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-7 {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

/* Pink colors for table */
.bg-pink-50 {
    background-color: #F4D6CC;
}

.bg-pink-100 {
    background-color: #fce7f3;
}

.bg-pink-200 {
    background-color: #fbcfe8;
}

.bg-pink-300 {
    background-color: #f9a8d4;
}

.bg-pink-400 {
    background-color: #e11d48;
}

.bg-custom-header {
    background-color: #F5C7B8;
}

.hover\:bg-pink-100:hover {
    background-color: #fce7f3;
}
