body {
    font-family: 'Inter', sans-serif;
    background-color: #fdfbf8;
    color: #4b4b4b;
}
.timeline-container {
    position: relative;
    width: 100%;
    height: 60px;
    background-color: #efeae4;
    border-radius: 0.5rem;
    overflow: visible; /* Allow labels to be positioned outside */
}
.timeline-segment {
    position: absolute;
    height: 100%;
    opacity: 1;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    padding: 0 4px;
    overflow: hidden;
    text-align: center;
    border-radius: 0.25rem; /* Slightly round the segments */
    z-index: 1; /* Base layer */
}

.timeline-text {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    padding: 0 4px;
    overflow: hidden;
    text-align: center;
    pointer-events: none;
    z-index: 10; /* Above everything to ensure text is always readable */
}

/* Match killzone colors to pattern light shades - darker for better text readability */
.timeline-segment.bg-green-500 {
    background-color: rgba(22, 163, 74, 1) !important;
}

.timeline-segment.bg-blue-500 {
    background-color: rgba(37, 99, 235, 1) !important;
}

.timeline-segment.bg-purple-500 {
    background-color: rgba(147, 51, 234, 1) !important;
}

.timeline-segment.bg-yellow-500 {
    background-color: rgba(202, 138, 4, 1) !important;
}

.timeline-segment.bg-red-500 {
    background-color: rgba(220, 38, 38, 1) !important;
}

.silver-bullet-overlay {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    padding: 0 4px;
    overflow: hidden;
    text-align: center;
    pointer-events: none;
    border-radius: 0.25rem;
    z-index: 2; /* On top of killzones to show the pattern */
}

/* Tooltip styles */
.tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 720px);
    background-color: #ffffff; /* white modal */
    color: #0f172a; /* slate-900 */
    padding: 24px 28px; /* more space near edges */
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 1000; /* Above everything */
    line-height: 1.5;
    font-weight: 300; /* ensure body text is not bold */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s, visibility 0.2s;
}

.tooltip.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Diagonal stripe patterns for Silver Bullet windows */
.silver-bullet-green {
    background: repeating-linear-gradient(
        135deg,
        rgba(14, 80, 39, 1),
        rgba(14, 80, 39, 1) 8px,
        rgba(22, 163, 74, 1) 8px,
        rgba(22, 163, 74, 1) 16px
    );
}

.silver-bullet-blue {
    background: repeating-linear-gradient(
        135deg,
        rgba(20, 50, 140, 1),
        rgba(20, 50, 140, 1) 8px,
        rgba(37, 99, 235, 1) 8px,
        rgba(37, 99, 235, 1) 16px
    );
}

.silver-bullet-purple {
    background: repeating-linear-gradient(
        135deg,
        rgba(75, 25, 120, 1),
        rgba(75, 25, 120, 1) 8px,
        rgba(147, 51, 234, 1) 8px,
        rgba(147, 51, 234, 1) 16px
    );
}

.silver-bullet-yellow {
    background: repeating-linear-gradient(
        135deg,
        rgba(120, 80, 5, 1),
        rgba(120, 80, 5, 1) 8px,
        rgba(202, 138, 4, 1) 8px,
        rgba(202, 138, 4, 1) 16px
    );
}

/* Small pattern sample for info cards */
.pattern-sample {
    height: 20px;
    width: 40px;
    border-radius: 0.25rem;
    margin: 0.25rem auto 0;
}
.timeline-hour-marker {
    position: absolute;
    height: 100%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}
.timeline-hour-label {
    position: absolute;
    top: 100%; /* Position below the bar */
    padding-top: 4px; /* Space between bar and text */
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #706c68;
}
.control-button {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background-color: #efeae4;
    color: #706c68;
}

.season-selector {
    margin-left: 4rem;
    margin-right: 4rem;
}

.season-selector .control-button {
    padding: 0.75rem 1rem;
}

.timezone-selector,
.asset-selector {
    margin-left: 2rem;
    margin-right: 2rem;
}

.timezone-selector .control-button,
.asset-selector .control-button {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.control-button.active {
    background-color: #d6cdbf;
    color: #4b4b4b;
    border-color: #c0b6a8;
}
.info-card {
    background-color: #ffffff;
    border: 1px solid #efeae4;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.macro-list {
    list-style-position: inside;
    padding-left: 0.5rem;
}
#tooltip-icon {
    font-size: 1em;
    margin-left: 0.25rem;
    font-family: 'Times New Roman', Times, serif;
}
