/* Custom Tailwind CSS extensions for classes missing in Tailwind v2.x */

.bg-sky-50 {
    background-color: #f0f9ff;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-slate-100 {
    background-color: #f1f5f9;
}

.bg-sky-500 {
    background-color: #0ea5e9;
}

.bg-amber-50 {
    background-color: #fffbeb;
}

.bg-amber-100 {
    background-color: #fef3c7;
}

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

.bg-amber-600 {
    background-color: #d97706;
}

.bg-emerald-100 {
    background-color: #d1fae5;
}

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

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

.bg-orange-100 {
    background-color: #ffedd5;
}

.bg-orange-500 {
    background-color: #f97316;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-teal-50 {
    background-color: #f0fdfa;
}

.bg-teal-100 {
    background-color: #ccfbf1;
}

.bg-teal-500 {
    background-color: #14b8a6;
}

.border-emerald-500 {
    --tw-border-opacity: 1;
    border-color: rgba(16, 185, 129, var(--tw-border-opacity));
}

.text-sky-500 {
    color: #0ea5e9;
}

.text-amber-500 {
    color: #f59e0b;
}

.text-amber-600 {
    color: #d97706;
}

.text-amber-800 {
    color: #92400e;
}

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

.text-emerald-700 {
    color: #047857;
}

.text-orange-700 {
    color: #c2410c;
}

.text-red-700 {
    color: #b91c1c;
}

.text-teal-600 {
    color: #0d9488;
}

.text-teal-700 {
    color: #0f766e;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-700 {
    color: #334155;
}

.border-sky-500 {
    --tw-border-opacity: 1;
    border-color: rgba(14, 165, 233, var(--tw-border-opacity));
}

.border-amber-500 {
    --tw-border-opacity: 1;
    border-color: rgba(245, 158, 11, var(--tw-border-opacity));
}

.border-amber-600 {
    --tw-border-opacity: 1;
    border-color: rgba(217, 119, 6, var(--tw-border-opacity));
}

.border-slate-500 {
    --tw-border-opacity: 1;
    border-color: rgba(100, 116, 139, var(--tw-border-opacity));
}

.border-teal-500 {
    --tw-border-opacity: 1;
    border-color: rgba(20, 184, 166, var(--tw-border-opacity));
}

.hover\:text-sky-500:hover {
    color: #0ea5e9;
}

.hover\:text-sky-600:hover {
    color: #0284c7;
}

.focus\:ring-sky-500:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgba(14, 165, 233, var(--tw-ring-opacity));
}

.scenario-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
}

input.scenario-input {
    margin-left: 0;
}

input.scenario-input:not(.text-right) {
    text-align: left;
}

.scenario-input--padded {
    max-width: 100%;
    min-width: auto;
    padding: 0.375rem 0.5rem;
    border: 1px solid #cbd5f5;
    border-radius: 0.5rem;
    background-color: #fff;
    line-height: 1.25rem;
}

@media (prefers-color-scheme: dark) {
    .scenario-input--padded {
        background-color: #1f2937;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .scenario-input--padded::placeholder {
        color: #9ca3af;
    }
}

input.scenario-input::-webkit-inner-spin-button,
input.scenario-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.scenario-input[type='number'] {
    -moz-appearance: textfield;
}

.scenario-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.scenario-table col.scenario-col-metric {
    width: 20rem;
    min-width: 14rem;
}

.scenario-table col.scenario-col-day,
.scenario-table col.scenario-col-fixed {
    width: 7rem;
    min-width: 6rem;
}

.scenario-table col.scenario-col-total {
    width: 8rem;
    min-width: 7rem;
}

/* Typography support similar to Tailwind's `@tailwindcss/typography` plugin */
.prose {
    color: #374151;
    max-width: 65ch;
    line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: #111827;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 1em;
    margin-bottom: 0.75em;
}

.prose h1 {
    font-size: 2.25rem;
}

.prose h2 {
    font-size: 1.875rem;
}

.prose h3 {
    font-size: 1.5rem;
}

.prose h4 {
    font-size: 1.25rem;
}

.prose p,
.prose ul,
.prose ol,
.prose pre,
.prose blockquote {
    margin-top: 1em;
    margin-bottom: 1em;
}

.prose strong {
    color: #111827;
    font-weight: 600;
}

.prose a {
    color: #0ea5e9;
    text-decoration: underline;
}

.prose code {
    background-color: rgba(229, 231, 235, 0.6);
    border-radius: 0.375rem;
    font-weight: 600;
    padding: 0.125em 0.375em;
}

.prose pre {
    background-color: #1f2937;
    border-radius: 0.375rem;
    color: #f9fafb;
    overflow-x: auto;
    padding: 1em 1.5em;
}

.prose blockquote {
    border-left: 0.25rem solid rgba(148, 163, 184, 0.6);
    color: #1f2937;
    font-style: italic;
    padding: 0.75em 1em;
    background-color: rgba(249, 250, 251, 0.5);
    border-radius: 0.25rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5em;
}

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

.prose table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
}

.prose thead {
    background-color: #f9fafb;
    border-bottom: 2px solid #d1d5db;
}

.prose th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #111827;
    border-right: 1px solid #e5e7eb;
}

.prose th:last-child {
    border-right: none;
}

.prose tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.prose tbody tr:last-child {
    border-bottom: none;
}

.prose tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.prose tbody tr:hover {
    background-color: #f3f4f6;
}

.prose td {
    padding: 0.75rem 1rem;
    border-right: 1px solid #e5e7eb;
    color: #374151;
}

.prose td:last-child {
    border-right: none;
}

.prose img,
.prose video,
.prose iframe,
.prose figure,
.prose table {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose figure figcaption {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.75em;
}

.prose hr {
    border-color: rgba(209, 213, 219, 0.6);
    margin-top: 3em;
    margin-bottom: 3em;
}

.prose-slate {
    color: #1e293b;
}

.prose-slate h1,
.prose-slate h2,
.prose-slate h3,
.prose-slate h4 {
    color: #0f172a;
}

.prose-slate a {
    color: #0284c7;
}

.prose-slate blockquote {
    border-left-color: rgba(100, 116, 139, 0.6);
    color: #1e293b;
    background-color: rgba(248, 250, 252, 0.5);
}

.prose-slate table {
    border-color: #cbd5e1;
}

.prose-slate thead {
    background-color: #f8fafc;
    border-bottom-color: #cbd5e1;
}

.prose-slate th {
    color: #0f172a;
    border-right-color: #e2e8f0;
}

.prose-slate tbody tr {
    border-bottom-color: #e2e8f0;
}

.prose-slate tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.prose-slate tbody tr:hover {
    background-color: #f1f5f9;
}

.prose-slate td {
    color: #1e293b;
    border-right-color: #e2e8f0;
}

/* Calendar styling for multi-day events */
.calendar-day-cell {
    --calendar-row-height: 150px;
    min-height: var(--calendar-row-height);
    overflow: hidden;
}

/* Fixed width calendar grid to prevent layout shifts */
.calendar-grid {
    width: 100%;
    max-width: 100%;
}

/* Allow grid to handle cell widths automatically */
.calendar-grid > div {
    min-width: 0;
}

/* Gradient backgrounds - supporting gradient utilities for dashboard cards */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

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

.bg-gradient-to-l {
    background-image: linear-gradient(to left, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-bl {
    background-image: linear-gradient(to bottom left, var(--tw-gradient-stops));
}

.bg-gradient-to-tr {
    background-image: linear-gradient(to top right, var(--tw-gradient-stops));
}

.bg-gradient-to-tl {
    background-image: linear-gradient(to top left, var(--tw-gradient-stops));
}

/* Gradient from colors */
.from-blue-50 {
    --tw-gradient-from: #eff6ff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0));
}

.from-blue-500 {
    --tw-gradient-from: #3b82f6;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0));
}

.from-green-500 {
    --tw-gradient-from: #22c55e;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(34, 197, 94, 0));
}

.from-orange-500 {
    --tw-gradient-from: #f97316;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 115, 22, 0));
}

.from-purple-500 {
    --tw-gradient-from: #a855f7;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(168, 85, 247, 0));
}

/* Gradient to colors */
.to-indigo-100 {
    --tw-gradient-to: #e0e7ff;
}

.to-blue-600 {
    --tw-gradient-to: #2563eb;
}

.to-green-600 {
    --tw-gradient-to: #16a34a;
}

.to-orange-600 {
    --tw-gradient-to: #ea580c;
}

.to-purple-600 {
    --tw-gradient-to: #9333ea;
}
