body { font: 14px/1.5 sans-serif; margin: 2rem; color: #333; }
h1 { margin-top: 0; }
textarea { 
    width: 100%; height: 180px; padding: 12px; box-sizing: border-box;
    font: 18px/1.6 'Fira Code', 'Source Code Pro', monospace;
    border: 2px solid #ddd; border-radius: 6px; background: #f9f9f9; 
    transition: 0.2s; outline: none; display: block;
}
textarea:focus { border-color: #3498db; background: #fff; box-shadow: 0 0 5px rgba(52,152,219,0.3); }
button { 
    padding: 10px 20px; font-weight: bold; color: #fff; 
    background: #3498db; border: none; border-radius: 4px; cursor: pointer; 
}
button:hover { background: #2980b9; }
table { border-collapse: collapse; width: 100%; margin-top: 1rem; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
th { background: #f4f4f4; }
.error { color: #721c24; background: #f8d7da; padding: 10px; border: 1px solid #f5c6cb; margin: 1rem 0; border-radius: 4px; }
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); }
.modal-content { display: block; margin: 5% auto; max-width: 80%; background: #fff; padding: 5px; }
.close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 30px; cursor: pointer; }
.btn-row { display: flex; gap: 10px; margin-top: 10px; }
.btn-copy { background: #6c757d; }
.btn-copy:hover { background: #5a6268; }  
.history-section { margin-top: 2rem; border-top: 2px solid #eee; padding-top: 1rem; }
.history-list { list-style: none; padding: 0; max-height: 300px; overflow-y: auto; background: #f8f9fa; border-radius: 6px; }
.history-item { 
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; border-bottom: 1px solid #eee; font-family: monospace; font-size: 13px;
}
.history-item:hover { background: #eef; cursor: pointer; }
.btn-clear { background: #dc3545; font-size: 12px; margin-bottom: 10px; } 
/* Banded Stripes */
.table-striped tbody tr:nth-child(even) { background-color: #f2f2f2; }

/* Numbered Rows column style */
.row-number { color: #888; font-size: 0.85em; text-align: center; width: 30px; background: #fafafa; }

/* Control panel spacing */
.options-row { display: flex; gap: 15px; margin: 10px 0; font-size: 14px; align-items: center; }
 
/* Limit notice */
.limit-notice { margin-top: 8px; font-size: 13px; color: #856404; background: #fff3cd; border: 1px solid #ffc107; border-radius: 4px; padding: 6px 10px; }

/* History timestamps & meta */
.history-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; margin-left: 12px; }
.history-ts { color: #999; font-size: 11px; white-space: nowrap; font-family: sans-serif; }
.history-apply { color: #3498db; font-size: 12px; }
.history-empty { padding: 10px 12px; color: #999; font-size: 13px; font-family: sans-serif; }

/* Confirm modal */
.confirm-overlay { position: fixed; z-index: 200; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
.confirm-box { background: #fff; border-radius: 8px; padding: 24px 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); min-width: 260px; text-align: center; }
.confirm-box p { margin: 0 0 18px; font-size: 15px; color: #333; }
.confirm-btns { display: flex; gap: 10px; justify-content: center; }
.btn-confirm-yes { background: #dc3545; }
.btn-confirm-yes:hover { background: #b02a37; }
.btn-confirm-no { background: #6c757d; }
.btn-confirm-no:hover { background: #5a6268; }