body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0 auto;
    padding: 0 10px;
    max-width: 1000px;
    background-color: #f4f4f4;
    box-sizing: border-box;
}

h1, h2, h3 {
    color: #333;
}

h1 {
    text-align: center;
}

section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

textarea {
    width: 95%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    display: block; 
    resize: vertical;
}

button {
    background-color: #5cb85c;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 5px; 
}

button:hover {
    background-color: #4cae4c;
}
#parseButton, #generateBatchButton {
    display: block;
    width: auto;
    margin-bottom: 15px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 15px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.rule-input label {
    margin-right: 5px;
    margin-left: 10px;
}

.rule-input input[type="text"],
.rule-input select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

.rule-input.multi-line {
    display: flex; 
    align-items: flex-start; 
    margin-top: 15px; 
}

.rule-input.multi-line label {
    width: 120px;
    text-align: right;
    margin-right: 10px;
    padding-top: 5px; 
}

.multi-line-inputs {
    display: flex;
    align-items: flex-start; 
    width: 100%; 
    gap: 15px; 
}

.multi-line-inputs .input-group {
    flex: 1; 
    display: flex;
    flex-direction: column; 
}

.multi-line-inputs .input-group label {
     margin-bottom: 5px; 
     text-align: left; 
     width: auto;
     padding-top: 0;
}
.multi-line-inputs textarea {
    margin-right: 0;
    height: 60px;
    width: 100%; 
    display: block; 
    box-sizing: border-box; 
}

.multi-line-inputs button {
    margin-left: 0;
    margin-top: 30px;
}

#paginationControls {
    margin-top: 15px;
    text-align: center;
}

#paginationControls button { 
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    color: #333; 
}

#paginationControls button:disabled {
    background-color: #eee;
    color: #aaa;
    cursor: default;
}

#batchList {
    list-style: none; 
    padding-left: 0; 
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #eee;
    padding: 10px;
    border-radius: 4px;
}

#batchList li {
    margin-bottom: 5px;
}

#outputCommands {
    background-color: #e9e9e9;
    font-family: monospace;
}
.editable {
    cursor: pointer; 
    background-color: #f9f9f9; 
}

.editable:hover {
    background-color: #eef; 
}

tr.modified td {
    background-color: #fffacd !important; 
    font-style: italic;
}
.action-buttons {
    margin-top: 15px; 
    text-align: center; 
}

.action-buttons button {
    display: inline-block;
    width: auto; 
    margin-left: 5px; 
    margin-right: 5px; 
    margin-bottom: 5px; 
    padding: 8px 12px; 
    border: 1px solid transparent; 
}

#generateDeleteButton {
    background-color: #d9534f; 
    border-color: #d43f3a;
}
#generateDeleteButton:hover {
    background-color: #c9302c;
    border-color: #ac2925;
}

#generateUpdateCommands {
    background-color: #f0ad4e; 
    border-color: #eea236;
}
#generateUpdateCommands:hover {
    background-color: #ec971f;
    border-color: #d58512;
}


#paginationControls button.currentPageButton {
    font-weight: bold;
    background-color: #5cb85c; 
    color: white;
    border-color: #4cae4c;
    cursor: default; 
}
