.changelog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.changelog-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.changelog-modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s ease-out;
}

.changelog-modal-overlay.active .changelog-modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body.changelog-timeline {
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    max-height: 60vh;
}

.timeline-entry {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2.5rem;
    transition: transform 0.2s ease;
}

.timeline-entry:hover {
    transform: translateX(5px);
}

.timeline-entry:last-child {
    padding-bottom: 0;
}

/* The Vertical Line */
.timeline-entry::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 1.5rem;
    bottom: 0;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-entry:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 0.25rem;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #3b82f6; /* Modern Blue */
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0;
    z-index: 1;
}

.timeline-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e293b;
    font-weight: 600;
}

.timeline-date {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

.private-indicator {
    background-color: #fee2e2;
    color: #b91c1c;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 4px;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list > li {
    margin-bottom: 1rem;
}

.changelog-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.tag-added {
    background-color: #e6f4ea;
    color: #1e8e3e;
}

.tag-fixed {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.tag-security {
    background-color: #fce8e6;
    color: #d93025;
}

.tag-changed {
    background-color: #fff7e6;
    color: #c05621;
}

.changelog-details {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
    color: #444;
    font-size: 0.95rem;
}

.changelog-details li {
    margin-bottom: 0.25rem;
}

.close-modal-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.close-modal-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.close-modal-btn .material-symbols-outlined {
    font-size: 24px;
}
