/* Font loaded via <link> tags in HTML for better performance */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #F9F9F9;
    /* Seasalt */
    margin: 0;
    padding: 0;
    color: #3B3B3B;
    /* Onyx */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.container-sm {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

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

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

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

.flex-1 {
    flex: 1;
}

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

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

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

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

/* Spacing */
.mb-1 {
    margin-bottom: 0.25rem;
}

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

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

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

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

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

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

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

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

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

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

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

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

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

.px-7 {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

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

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

.pt-4 {
    padding-top: 1rem;
}

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

.w-32 {
    width: 8rem;
}

.w-96 {
    width: 24rem;
}

.w-half {
    width: 50%;
}

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

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

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

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

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

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

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

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

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

.font-extrabold {
    font-weight: 800;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.leading-6 {
    line-height: 1.5rem;
}

/* Colors */
.text-white {
    color: white;
}

.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-blue-500 {
    color: #87B2E6;
    /* Jordy Blue */
}

.text-blue-600 {
    color: #3C6494;
    /* Lapis Lazuli */
}

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

.text-green-700 {
    color: #15803d;
}

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

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

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

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

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

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

.bg-gray-300 {
    background-color: #d1d5db;
}

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

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

.bg-blue-500 {
    background-color: #87B2E6;
    /* Jordy Blue */
}

.bg-blue-600 {
    background-color: #3C6494;
    /* Lapis Lazuli */
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-500 {
    background-color: #2E4A72;
    /* YInMn Blue */
}

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

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

.bg-yellow-500 {
    background-color: #3C6494;
    /* Lapis Lazuli */
}

/* Borders */
.border {
    border-width: 1px;
    border-style: solid;
    border-color: #e5e7eb;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #e5e7eb;
}

.border-t-4 {
    border-top-width: 4px;
    border-top-style: solid;
}

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

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

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

.border-green-400 {
    border-color: #4ade80;
}

.border-red-400 {
    border-color: #f87171;
}

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

.rounded-md {
    border-radius: 0.375rem;
}

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

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-l-md {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.rounded-r-md {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Shadows */
.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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

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

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

.divide-gray-200>*+* {
    border-top-color: #e5e7eb;
}

/* Opacity */
.opacity-25 {
    opacity: 0.25;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

/* Buttons Base */
button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Inputs Base */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

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

/* Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(75, 85, 99, 0.5);
    overflow-y: auto;
    height: 100%;
    width: 100%;
    z-index: 50;
}

/* Fixed positioning */
.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.relative {
    position: relative;
}

.top-20 {
    top: 5rem;
}

.h-full {
    height: 100%;
}

/* Code styling */
code {
    background-color: #e5e7eb;
    padding: 0 0.25rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.875em;
}

/* Inline SVG sizing */
svg.inline {
    display: inline;
}

.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

.h-8 {
    height: 2rem;
}

.w-8 {
    width: 2rem;
}

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

/* Hover states */
.hover-bg-blue-600:hover {
    background-color: #2563eb;
}

.hover-bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover-bg-green-600:hover {
    background-color: #16a34a;
}

.hover-bg-gray-300:hover {
    background-color: #d1d5db;
}

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

.hover-bg-gray-600:hover {
    background-color: #4b5563;
}

.hover-bg-yellow-600:hover {
    background-color: #ca8a04;
}

.hover-bg-red-600:hover {
    background-color: #dc2626;
}

/* Focus states */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #3b82f6;
}

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

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

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

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

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

.gap-x-4 {
    column-gap: 1rem;
}

.gap-y-8 {
    row-gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, opacity 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid transparent;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1rem;
    border-radius: 0.25rem;
}

.btn-blue {
    background-color: #3C6494;
    /* Lapis Lazuli */
    color: white;
}

.btn-blue:hover {
    background-color: #2E4A72;
    /* YInMn Blue */
}

.btn-blue:active {
    background-color: #1a2d4a;
}

.btn-green {
    background-color: #2E4A72;
    /* YInMn Blue */
    color: white;
}

.btn-green:hover {
    background-color: #1a2d4a;
}

.btn-green:active {
    background-color: #0f1b2d;
}

.btn-yellow {
    background-color: #3C6494;
    /* Lapis Lazuli */
    color: white;
}

.btn-yellow:hover {
    background-color: #2E4A72;
    /* YInMn Blue */
}

.btn-yellow:active {
    background-color: #1a2d4a;
}

.btn-red {
    background-color: #ef4444;
    color: white;
}

.btn-red:hover {
    background-color: #dc2626;
}

.btn-red:active {
    background-color: #b91c1c;
}

.btn-purple {
    background-color: #8b5cf6;
    color: white;
}

.btn-purple:hover {
    background-color: #7c3aed;
}

.btn-purple:active {
    background-color: #6d28d9;
}

@media (min-width: 640px) {
    .sm-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm-col-span-1 {
        grid-column: span 1;
    }

    .sm-col-span-2 {
        grid-column: span 2;
    }

    .sm-inline {
        display: inline;
    }
}