body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
}

.content {
    display: flex;
    gap: 20px;
}

.log-list {
    flex: 1;
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

.log-details {
    flex: 1;
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

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

th, td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.log-detail p {
    margin: 5px 0;
}

.message-log {
    margin-top: 10px;
}

.message {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.message .role {
    font-weight: bold;
    margin-bottom: 5px;
}

.message .content {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
}

.message.user {
    background-color: #e6f3ff;
}

.message.assistant {
    background-color: #f0f0f0;
}

.filter-container {
    margin-bottom: 20px;
}

#log-filter {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.prompt-hash {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.prompt-hash-tag {
    display: inline-block;
    font-size: 0.7em;
    background-color: #f0f0f0;
    color: #666;
    padding: 2px 5px;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 5px;
}

.prompt-hash-tag:hover {
    background-color: #e0e0e0;
}

.prompt-info {
    font-size: 0.8em;
    color: #666;
    margin-top: -5px;
    margin-bottom: 5px;
}

.prompt-name {
    font-style: italic;
    margin-right: 5px;
}

.prompt-hash {
    font-family: monospace;
    color: #0066cc;
    text-decoration: none;
}

.prompt-hash:hover {
    text-decoration: underline;
}

/* Styles for modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow: auto;
}

.modal-pre {
    white-space: pre;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 60vh;
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
