
.wide {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0px !important;
}

.wide .message-content {
    padding: 0px;
    border: 1px solid #a7a5a5;
    border-radius: 6px;
}

.changesetHeader {
    padding: 10px;
    padding-bottom: 0px;
}

.wide.collapsed {
    max-height: 20px;
}

.changesetHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.right-collapser {
    justify-content: flex-end;
    xbackground-color: yellow;
}


/* Status pill */
.changeset-status-pill {
    margin-left: auto;
    margin-right: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #30363d;
}
.changeset-status-pill.pending { background-color: rgba(255, 193, 7, 0.15); color: #ffd33d; border-color: rgba(255,193,7,0.3); }
.changeset-status-pill.applied { background-color: rgba(63, 185, 80, 0.15); color: #56d364; border-color: rgba(63,185,80,0.3); }
.changeset-status-pill.rejected { background-color: rgba(248, 81, 73, 0.15); color: #f85149; border-color: rgba(248,81,73,0.3); }

/* Collapsible container */
.changeset-container {
    transition: max-height 1s ease, opacity 0.6s ease, padding-top 0.3s ease, padding-bottom 0.3s ease;
    overflow: hidden;
}
.changeset-container.collapsed {
    max-height: 0px;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-top-width: 0;
    border-bottom-width: 0;
}

/* Toggle button/icon */
.accordion-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.accordion-icon {
    position: relative;
    width: 14px;
    height: 14px;
}
.accordion-icon::before, .accordion-icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    background-color: #c9d1d9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.accordion-icon::before {
    width: 14px;
    height: 2px;
    top: 6px; /* horizontal line */
}
.accordion-icon::after {
    width: 2px;
    height: 14px;
    top: 0; /* vertical line */
}
.accordion-icon[data-state="expanded"]::after { opacity: 0; transform: scaleY(0); }
.accordion-icon[data-state="collapsed"]::after { opacity: 1; transform: scaleY(1); }


.changeset-container {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Monaco, 'Courier New', monospace;
    background-color: #1a1a1a !important;
    color: whitesmoke;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    overflow-x: auto;

    table tbody tr:nth-child(odd) td {
        background-color: #1a1a1a !important;
        color: white;
    }

    table tbody tr:nth-child(even) td {
        background-color: #2d2d2d !important;
        color: white;
    }

    

    .changeset-header {
        border-bottom: 1px solid #444;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .changeset-title {
        font-size: 18px;
        font-weight: bold;
        color: #58a6ff;
        margin-bottom: 10px;
    }

    .changeset-description {
        font-size: 14px;
        color: #c9d1d9;
        margin-bottom: 10px;
    }

    .changeset-summary {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-bottom: 20px;
    }

    .summary-item {
        background-color: #21262d;
        padding: 12px;
        border-radius: 6px;
        border: 1px solid #30363d;
    }

    .summary-label {
        font-size: 12px;
        color: #8b949e;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .summary-value {
        font-size: 14px;
        color: #c9d1d9;
        font-weight: 500;
    }

    .changes-section {
        margin-bottom: 20px;
    }

    .changes-section-title {
        font-size: 16px;
        color: #58a6ff;
        margin-bottom: 10px;
        border-bottom: 1px solid #444;
        padding-bottom: 5px;
    }

    .change-item {
        background-color: #161b22;
        border: 1px solid #30363d;
        border-radius: 6px;
        margin-bottom: 15px;
        overflow: hidden;
    }

    .change-header {
        background-color: #21262d;
        padding: 12px 15px;
        border-bottom: 1px solid #30363d;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .change-type {
        font-size: 12px;
        font-weight: bold;
        padding: 4px 8px;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .change-type.insert {
        background-color: rgba(63, 185, 80, 0.2);
        color: #56d364;
        border: 1px solid rgba(63, 185, 80, 0.3);
    }

    .change-type.update {
        background-color: rgba(255, 193, 7, 0.2);
        color: #ffd33d;
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

    .change-type.delete {
        background-color: rgba(248, 81, 73, 0.2);
        color: #f85149;
        border: 1px solid rgba(248, 81, 73, 0.3);
    }

    .change-entity {
        font-size: 14px;
        color: #c9d1d9;
        font-weight: 500;
    }

    .change-table {
        width: 100%;
        border-collapse: collapse;
    }

    .change-table th, .change-table td {
        padding: 8px 12px;
        text-align: left;
        border-bottom: 1px solid #30363d;
    }

    .change-table th {
        background-color: #21262d;
        font-size: 12px;
        color: #8b949e;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    .property-row.modified {
        background-color: rgba(255, 193, 7, 0.1);
    }

    .property-name {
        font-weight: 500;
        color: #c9d1d9;
        font-size: 13px;
    }

    .property-value {
        font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Monaco, 'Courier New', monospace;
        font-size: 12px;
        padding: 2px 4px;
        border-radius: 3px;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .value-original {
        background-color: rgba(248, 81, 73, 0.2);
        color: #f85149;
        text-decoration: line-through;
    }

    .value-current {
        background-color: rgba(63, 185, 80, 0.2);
        color: #56d364;
    }

    .value-unchanged {
        color: #8b949e;
        background-color: rgba(177, 186, 196, 0.1);
    }

    .diff-arrow {
        color: #8b949e;
        margin: 0 8px;
        font-size: 12px;
    }

    .changeset-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding-top: 15px;
        border-top: 1px solid #444;
    }

    .btn {
        padding: 8px 16px;
        border: none;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .btn.apply {
        background-color: rgba(63, 185, 80, 0.2);
        color: #56d364;
        border: 1px solid rgba(63, 185, 80, 0.3);
    }

    .btn.apply:hover {
        background-color: rgba(63, 185, 80, 0.3);
        transform: translateY(-1px);
    }

    .btn.reject {
        background-color: rgba(248, 81, 73, 0.2);
        color: #f85149;
        border: 1px solid rgba(248, 81, 73, 0.3);
    }

    .btn.reject:hover {
        background-color: rgba(248, 81, 73, 0.3);
        transform: translateY(-1px);
    }

    .assistant-message {
        background-color: #1a1a1a;
        color: whitesmoke;
        padding: 16px 20px;
        border-radius: 8px;
        margin-bottom: 16px;
        border-left: 4px solid #58a6ff;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        line-height: 1.5;
    }

    .assistant-message strong {
        color: #58a6ff;
    }

    .no-changes {
        text-align: center;
        color: #8b949e;
        padding: 40px;
        font-style: italic;
    }

    @media (max-width: 768px) {
        .changeset-container {
            padding: 15px;
        }

        .changeset-summary {
            grid-template-columns: 1fr;
        }

        .change-table {
            font-size: 11px;
        }

        .property-value {
            max-width: 120px;
        }
    }
}

