.wia-changelog {
    margin: 20px 0;
}

.wia-changelog-version {
    border-left: 4px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fafafa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wia-changelog-version.wia-current {
    border-left-color: #2271b1;
    background-color: #f0f6fc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.wia-changelog-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.wia-version-number {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #1e1e1e;
}

.wia-changelog-version.wia-current .wia-version-number {
    color: #2271b1;
}

.wia-version-date {
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
}

.wia-badge-current {
    display: inline-block;
    background-color: #2271b1;
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
}

.wia-changelog-changes {
    padding-top: 10px;
}

.wia-changelog-changes ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.wia-changelog-changes li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333;
}

.wia-changelog-changes li:last-child {
    margin-bottom: 0;
}

.wia-no-changes {
    color: #666;
    font-style: italic;
    margin: 0;
}

.wia-changelog-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 4px;
    margin: 20px 0;
}

.wia-changelog-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.wia-changelog-button {
    display: inline-block;
    background-color: #2271b1;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

.wia-changelog-button:hover {
    background-color: #135e96;
}

.wia-changelog-button:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Modal Styles */
.wia-changelog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.wia-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.wia-modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    margin: 5vh auto;
    border-radius: 8px;
    box-shadow: 0 5px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

.wia-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.wia-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.wia-modal-close {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.wia-modal-close:hover {
    background-color: #f0f0f0;
    color: #000;
}

.wia-modal-body {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
}

.wia-modal-body .wia-changelog-version {
    margin-bottom: 15px;
}

/* Animations */
.wia-changelog-modal.show {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wia-modal-content {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .wia-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
    }

    .wia-modal-header {
        padding: 15px;
    }

    .wia-modal-body {
        padding: 15px;
    }

    .wia-modal-header h2 {
        font-size: 1.2em;
    }
}

@media (max-width: 600px) {
    .wia-changelog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wia-changelog-version {
        padding: 15px;
    }
}
