/* Timeline Modal Trigger Button */
.timeline-modal-trigger {
    background: none;
    border: none;
    padding: 4px;
    margin-left: 6px;
    cursor: pointer;
    color: #0b7b93;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    transition: color 0.2s, transform 0.2s;
}

.timeline-modal-trigger:hover,
.timeline-modal-trigger:focus {
    color: #004499;
    transform: scale(1.1);
}

.timeline-modal-trigger svg {
    display: block;
}

/* Timeline Modal Styles */
.timeline-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    animation: fadeIn 0.2s ease-in-out;
}

.timeline-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.timeline-modal-content {
    position: relative;
    max-width: 700px;
    width: 90%;
    margin: 50px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

@media (max-width: 768px) {
    .timeline-modal-content {
        width: 95%;
        margin: 20px auto;
        max-height: calc(100vh - 40px);
    }
}

.timeline-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    z-index: 10;
    transition: color 0.2s;
}

.timeline-modal-close:hover,
.timeline-modal-close:focus {
    color: #000;
}

.timeline-modal-body {
    padding: 48px 32px 32px;
}

@media (max-width: 768px) {
    .timeline-modal-body {
        padding: 48px 24px 24px;
    }
}

.timeline-modal-body h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #0b7b93;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .timeline-modal-body h2 {
        font-size: 1.5rem;
    }
}

.timeline-modal-body .expected-finish {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.timeline-modal-body .timeline-modal-text {
    line-height: 1.6;
}

.timeline-modal-body .timeline-modal-text p {
    margin-bottom: 1em;
}

.timeline-modal-body .timeline-modal-text ul,
.timeline-modal-body .timeline-modal-text ol {
    margin-left: 20px;
    margin-bottom: 1em;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hidden modal data */
.timeline-modal-data {
    display: none !important;
}

.timeline-modal-trigger {
    background: none;
    border: none;
    padding: 4px;
    margin-left: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    transition: transform 0.2s, opacity 0.2s;
}

.timeline-modal-trigger:hover,
.timeline-modal-trigger:focus {
    transform: scale(1.1);
    opacity: 0.8;
}

.timeline-modal-trigger img {
    display: block;
}