body {
    background-color: #f8f9fa;
    overflow-y: auto;
}

.CodeMirror {
    height: 450px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    border: 1px solid #dee2e6;
}

#output-area {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #ffffff !important;
    border: 1px solid #dee2e6;
}

.output-entry {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.output-entry:last-child {
    border-bottom: none;
}

.output-timestamp {
    color: #888;
    font-size: 0.85em;
    margin-bottom: 8px;
    font-weight: 500;
}

.output-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #ddd;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.error-msg {
    color: #dc3545;
    font-weight: 500;
}

.success-msg {
    color: #198754;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.file-item:last-child {
    border-bottom: none;
}

/* Ensure cards have proper spacing */
.card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.card-header {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Make sure the page can scroll */
html, body {
    height: auto;
    min-height: 100vh;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .CodeMirror {
        height: 350px;
    }
    
    #output-area {
        min-height: 300px !important;
    }
}

/* Help modal styling */
.help-content pre {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.help-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.help-content pre code {
    background-color: transparent;
    padding: 0;
}

.help-content h6 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.help-content .alert {
    font-size: 0.95em;
}

.help-content table {
    font-size: 0.9em;
}

.help-content kbd {
    background-color: #eee;
    border: 1px solid #b4b4b4;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
    padding: 2px 6px;
    font-size: 0.85em;
}

/* API Status button */
#api-status {
    min-width: 140px;
    cursor: default;
}

#api-status:disabled {
    opacity: 1;
}

#status-icon {
    font-weight: bold;
}
