/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.min-h-screen {
    min-height: 100vh;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-white {
    background-color: #ffffff;
}

.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.5);
}

.bg-d6deff {
    background-color: #D6DEFF;
}

.bg-7b8cde {
    background-color: #7B8CDE;
}

.bg-003366 {
    background-color: #003366;
}

.bg-ebf0ff {
    background-color: #EBF0FF;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-200 {
    background-color: #bfdbfe;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.text-white {
    color: #ffffff;
}

.text-black {
    color: #000000;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-blue-800 {
    color: #1e40af;
}

.text-blue-900 {
    color: #1e3a8a;
}

.font-sans {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.font-serif {
    font-family: Georgia, 'Times New Roman', serif;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.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-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Layout */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-auto {
    margin-top: auto;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.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-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.pb-12 {
    padding-bottom: 3rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.shrink-0 {
    flex-shrink: 0;
}

/* Width and Height */
.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.w-24 {
    width: 6rem;
}

.w-32 {
    width: 8rem;
}

.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

.h-px {
    height: 1px;
}

.h-4 {
    height: 1rem;
}

.h-8 {
    height: 2rem;
}

.footer-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.footer-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.min-h-600 {
    min-height: 600px;
}

.max-h-500 {
    max-height: 500px;
}

.max-w-7xl {
    max-width: 80rem;
}

.min-w-800 {
    min-width: 800px;
}

/* Responsive */
@media (min-width: 768px) {
    .md-flex-row {
        flex-direction: row;
    }

    .md-w-40 {
        width: 40%;
    }

    .md-w-60 {
        width: 60%;
    }

    .md-p-12 {
        padding: 3rem;
    }

    .md-text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .md-text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .md-text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

/* Borders */
.border {
    border-width: 1px;
}

.border-r {
    border-right-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-blue-100 {
    border-color: #dbeafe;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-2rem {
    border-radius: 2rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

/* 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-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* Object */
.object-contain {
    object-fit: contain;
}

.object-cover {
    object-fit: cover;
}

/* Opacity */
.opacity-80 {
    opacity: 0.8;
}

/* Divide */
.divide-y > * + * {
    border-top-width: 1px;
}

.divide-blue-50 > * + * {
    border-top-color: #eff6ff;
}

.divide-blue-100 > * + * {
    border-top-color: #dbeafe;
}

/* Space */
.space-y-5 > * + * {
    margin-top: 1.25rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hover States */
.hover\:bg-blue-50:hover {
    background-color: #eff6ff;
}

.hover\:bg-blue-200:hover {
    background-color: #bfdbfe;
}

.hover\:bg-white:hover {
    background-color: #ffffff;
}

.hover\:bg-6a7bc9:hover {
    background-color: #6A7BC9;
}

/* Focus States */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus\:ring-blue-400:focus {
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5);
}

/* Input Styles */
input[type="number"],
input[type="text"] {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

input[type="number"]:focus,
input[type="text"]:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5);
}

/* Button Styles */
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Chart Bar Animation */
.chart-bar {
    height: 100%;
    background-color: #00D4FF;
    border-radius: 9999px;
    position: relative;
    animation: barFill 1s ease-out forwards;
    transform-origin: left;
    min-width: 0;
}

@keyframes barFill {
    from {
        width: 0;
    }
}

.chart-bar-track {
    flex: 1 1 0%;
    height: 1rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    position: relative;
    overflow: visible;
}

.chart-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ship-emoji {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(50%) scaleX(-1);
    font-size: 1.5rem;
    z-index: 10;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

/* Expandable Row Animation */
.expandable-content {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon Styles */
.icon-chevron {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
}

.icon-plus {
    width: 0.75rem;
    height: 0.75rem;
    display: inline-block;
    vertical-align: middle;
}

svg {
    display: inline-block;
    vertical-align: middle;
}

/* Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 1rem 1.5rem;
}

/* Relative Positioning */
.relative {
    position: relative;
}

/* Transform */
.transform {
    transform: translateZ(0);
}

.scale-x-\[-1\] {
    transform: scaleX(-1);
}

/* Z-index */
.z-10 {
    z-index: 10;
}

/* Additional utility for bg colors with opacity */
.bg-7b8cde\/20 {
    background-color: rgba(123, 140, 222, 0.2);
}

.bg-blue-50\/50 {
    background-color: rgba(239, 246, 255, 0.5);
}
