/* Changelog Modal */
#changelogModal.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1050; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling on body */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
    -webkit-animation: fadeIn 0.3s;
    animation: fadeIn 0.3s;
}

#changelogModal .modal-content {
    position: relative;
    background-color: var(--background-color);
    margin: 10% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 720px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

#changelogModal .modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#changelogModal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
}

#changelogModal .close-button {
    color: var(--text-color-secondary);
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 8px;
}

#changelogModal .close-button:hover,
#changelogModal .close-button:focus {
    color: var(--text-color);
    text-decoration: none;
}

#changelogContent {
    padding: 16px 28px 28px 28px;
    overflow-y: auto;
    color: var(--text-color-secondary);
}

/* Custom Scrollbar for Changelog */
#changelogContent::-webkit-scrollbar {
    width: 8px;
}

#changelogContent::-webkit-scrollbar-track {
    background: var(--background-color-secondary);
    border-radius: 4px;
}

#changelogContent::-webkit-scrollbar-thumb {
    background: var(--border-color-hover);
    border-radius: 4px;
}

#changelogContent::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}


.changelog-entry {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.changelog-entry h4 {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-top: 28px;
    margin-bottom: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.changelog-entry ul {
    list-style-type: none;
    padding-left: 10px; /* Increased padding for better alignment */
    border-left: 2px solid var(--border-color);
    margin-left: 12px; /* Adjusted margin */
}

.changelog-entry li {
    margin-bottom: 16px;
    padding-left: 25px; /* Increased padding for bullet point */
    position: relative;
    line-height: 1.7;
}

.changelog-entry li::before {
    content: '';
    position: absolute;
    left: -3px; /* Adjusted position */
    top: 8px;
    height: 10px; /* Larger bullet point */
    width: 10px; /* Larger bullet point */
    border-radius: 50%;
    background-color: var(--border-color-hover);
    border: 2px solid var(--background-color);
}

.changelog-entry li:hover::before {
    background-color: var(--primary-color);
}


.changelog-bold {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.changelog-entry p {
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 10px;
}

.changelog-entry code {
    background-color: var(--background-color-secondary);
    padding: 3px 7px;
    border-radius: 5px;
    font-family: 'Fira Mono', monospace;
    font-size: 0.95em;
    color: var(--primary-color);
}

/* Fade-in animation */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
