/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #1a1a1a;
}

a {
    color: #007AFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons and Links */
.btn {
    display: inline-block;
    padding: 11px 20px;
    margin: 10px 10px 10px 0;
    background-color: #007AFF;
    color: #fff;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    line-height: 1;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-group {
    margin-top: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    height: 120px;
    resize: vertical;
}

.btn.disabled {
    background-color: #d3d3d3;
    color: #888;
    pointer-events: none;
    cursor: default;
}

/* File Explorer */
.file-explorer {
    list-style: none;
    padding-left: 0;
}

.file-explorer li {
    padding-left: 20px;
    position: relative;
}

.file-explorer .folder > span {
    cursor: pointer;
    user-select: none;
}

.file-explorer .folder > span::before {
    content: '►';
    position: absolute;
    left: 0;
    width: 20px;
    text-align: center;
    transition: transform 0.1s ease-in-out;
}

.file-explorer .folder.open > span::before {
    transform: rotate(90deg);
}

.file-explorer ul {
    list-style: none;
    padding-left: 20px;
    display: none;
}

.file-explorer .folder.open > ul {
    display: block;
}

/* Diff Viewer */
.artifact-item {
    cursor: pointer;
    user-select: none;
}

.diff-view {
    display: none;
    border: 1px solid #eee;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap; /* Wrap long lines */
    background-color: #f6f8fa;
}

.diff-view.open {
    display: block;
}

.diff-line {
    display: block;
}

.diff-add {
    background-color: #e6ffed;
}

.diff-del {
    background-color: #ffeef0;
}

.diff-context {
    color: #586069;
}
