/* Enhanced API Response Styling */

.result-summary {
    padding: 15px;
    margin: 15px 0;
    background-color: #fffbea; /* Light yellow background */
    border: 1px solid #ffe58f;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.result-summary h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ffe58f;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.result-summary p {
    margin: 8px 0;
}

.result-summary h4 {
    margin: 15px 0 10px 0;
    color: #495057;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 10px;
}

.results-details {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.full-response-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    color: #2c3e50;
    padding: 8px 0;
}

.collapse-indicator {
    font-weight: bold;
    color: #666;
}

.response-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 1000px;
}

.response-content.collapsed {
    max-height: 0;
}

.json-display {
    margin: 0;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow-x: auto;
    font-family: monospace;
}

/* Grid layout for results */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.result-grid > div {
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

/* Enhanced JSON display */
.json-content {
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    margin: 5px 0;
    line-height: 1.4;
    font-size: 13px;
    color: #333;
    border: 1px solid #e0e0e0;
}

.json-content .key {
    color: #8250df; /* Purple for keys */
    font-weight: bold;
}

.json-content .string {
    color: #0a3069; /* Dark blue for strings */
}

.json-content .number {
    color: #116329; /* Green for numbers */
}

.json-content .boolean {
    color: #cf222e; /* Red for booleans */
}

.json-content .null {
    color: #953800; /* Brown for null */
}

/* Data item styling */
.data-item {
    margin-bottom: 8px;
    padding: 8px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

.data-item-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.data-item-value {
    word-break: break-word;
}
