.changelog-btn-container {
    position: relative;
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.changelog-btn-container.has-new-update #changelogButton {
    animation: changelogPulse 2s infinite;
}

.changelog-btn-container.has-new-update .whats-new-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

#changelogButton {
    background-color: #0d6efd;
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#changelogButton:hover {
    background-color: #0b5ed7;
}

#changelogOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10020;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: opacity 0.2s ease;
}

#changelogOverlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

#changelogPanel {
    background-color: #2a2f37;
    border: 2px solid #3f8ff0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #eee;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#changelogHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #273657;
    background-color: rgba(32, 35, 42, 0.5);
}

#changelogHeader h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

#changelogCloseButton {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: color 0.2s;
}

#changelogCloseButton:hover {
    color: #fff;
}

#changelogContent {
    padding: 1.5rem;
    overflow-y: auto;
}

.changelog-entry {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.changelog-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.changelog-version {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.version-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #3f8ff0;
}

.version-date {
    font-size: 0.85rem;
    color: #888;
}

.changelog-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.changelog-list li {
    margin-bottom: 0.25rem;
}

.whats-new-badge {
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
}

.whats-new-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: #dc3545 transparent transparent transparent;
}

@keyframes changelogPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}