/* Schema Fields */
.schema-fields {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.field-row {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.2s;
}

.field-row:last-child {
    border-bottom: none;
}

.field-row:hover {
    background-color: #f8f9fa;
}

.field-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.field-name-section {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.field-name {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.required-badge {
    background: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-type {
    min-width: 80px;
}

.type-badge {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-order {
    min-width: 40px;
}

.order-badge {
    background: #2c3e50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.field-description {
    flex: 1;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.4;
    margin-left: 20px;
}

.field-path {
    color: #000000;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 200px;
    text-align: right;
}

.field-constraints {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.constraint-badge {
    background: #2c3e50;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.constraint-badge:last-child {
    margin-bottom: 0;
}

.constraint-badge:first-child {
    margin-top: 0;
}


/* Collapse/Expand Toggle Styles */
.collapse-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    min-width: 20px;
    height: 20px;
}

.collapse-toggle:hover {
    background-color: #ecf0f1;
}

.collapse-toggle:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.collapse-icon {
    font-size: 12px;
    color: #7f8c8d;
    transition: transform 0.2s ease;
    display: inline-block;
    line-height: 1;
}

.field-children {
    transition: all 0.2s ease;
}

.field-children.collapsed {
    display: none;
}

.field-children:not(.collapsed) {
    display: block;
}

/* Expanded field highlighting */
.field-container.expanded .field-row {
    background-color: #e8f4fd;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.field-container.expanded .field-row:hover {
    background-color: #d1ecf1;
}

.field-container.expanded .field-name {
    color: #2980b9;
    font-weight: 700;
}

.field-container.expanded .collapse-icon {
    color: #3498db;
    font-weight: bold;
}

.raw-schema-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    overflow: hidden;
}

.toggle-raw-btn {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.toggle-raw-btn:hover {
    background: #2980b9;
}

.toggle-icon {
    font-size: 14px;
    transition: transform 0.2s;
}

.raw-schema-content {
    padding: 0;
}

.raw-schema-content pre {
    margin: 0;
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}
