.skyseo-ai-schema-shell {
    max-width: 1000px;
    margin: 20px 0;
}

.skyseo-ai-schema-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.skyseo-ai-schema-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.skyseo-ai-schema-card h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 15px;
}

.skyseo-ai-schema-field {
    display: block;
    margin-bottom: 15px;
}

.skyseo-ai-schema-field > span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.skyseo-ai-schema-check {
    display: block;
    margin-bottom: 5px;
}

.skyseo-ai-schema-row {
    display: flex;
    gap: 15px;
}

.skyseo-ai-schema-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skyseo-ai-schema-status-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: #f0f0f1;
    color: #3c434a;
}

.skyseo-ai-schema-status-running {
    background: #e5f5fa;
    color: #0073aa;
}

.skyseo-ai-schema-status-paused {
    background: #fef8ee;
    color: #d63638;
}

.skyseo-ai-schema-status-completed {
    background: #edfaef;
    color: #00a32a;
}

.skyseo-ai-schema-status-timestamp {
    font-size: 12px;
    color: #8c8f94;
}

.skyseo-ai-schema-tab-content {
    animation: skyseoFadeIn 0.3s ease;
}

/* Responsive Button Stacking for Sidebar */
.skyseo-editor-panel .skyseo-ai-schema-actions-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.skyseo-editor-panel .skyseo-ai-schema-actions-row .button {
    width: 100%;
    text-align: center;
    margin: 4px 0 !important;
}

.skyseo-ai-schema-editor {
    width: 100%;
    font-family: monospace;
    font-size: 12px;
    padding: 10px;
    background: #1d2327;
    color: #c3c4c7;
    border: 1px solid #50575e;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}

.skyseo-ai-schema-editor:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.skyseo-ai-schema-feedback {
    display: none;
    color: #00a32a;
    font-weight: 600;
    margin-left: 8px;
}

.skyseo-ai-schema-form-editor {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skyseo-ai-schema-form-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    overflow: hidden;
}

.skyseo-ai-schema-form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f0f0f1;
    border-bottom: 1px solid #c3c4c7;
}

.skyseo-ai-schema-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: #2271b1;
    color: #fff;
    letter-spacing: 0.5px;
}

.skyseo-ai-schema-form-card-body {
    padding: 14px;
}

.skyseo-ai-schema-form-card-body .skyseo-ai-schema-field {
    margin-bottom: 12px;
}

.skyseo-ai-schema-form-card-body .skyseo-ai-schema-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 12px;
    color: #1d2327;
}

.skyseo-ai-schema-form-card-body .skyseo-ai-schema-field input[type="text"],
.skyseo-ai-schema-form-card-body .skyseo-ai-schema-field input[type="number"],
.skyseo-ai-schema-form-card-body .skyseo-ai-schema-field textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.skyseo-ai-schema-form-card-body .skyseo-ai-schema-field textarea {
    min-height: 60px;
    resize: vertical;
    font-family: inherit;
}

.skyseo-ai-schema-nested {
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
    background: #f6f7f7;
}

.skyseo-ai-schema-nested legend {
    font-weight: 600;
    font-size: 12px;
    padding: 0 6px;
    color: #50575e;
}

.skyseo-ai-schema-array-group {
    margin-bottom: 12px;
}

.skyseo-ai-schema-array-label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 6px;
    color: #1d2327;
}

.skyseo-ai-schema-array-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skyseo-ai-schema-array-item {
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 10px;
    background: #f6f7f7;
    position: relative;
}

.skyseo-ai-schema-array-item .skyseo-ai-schema-field {
    margin-bottom: 8px;
}

.skyseo-ai-schema-array-item .skyseo-ai-schema-field:last-child {
    margin-bottom: 0;
}

.skyseo-ai-schema-array-item .skyseo-ai-schema-field label {
    font-size: 11px;
    color: #50575e;
}

.skyseo-ai-schema-toggle-json {
    font-size: 11px !important;
    min-height: 28px !important;
    line-height: 26px !important;
}

.skyseo-ai-schema-json-view .skyseo-ai-schema-editor {
    margin: 0;
    border-radius: 0 0 6px 6px;
}

.skyseo-ai-schema-json-view .description {
    padding: 6px 14px 10px;
    margin: 0;
    font-size: 11px;
    color: #8c8f94;
}

.skyseo-editor-panel .skyseo-ai-schema-form-card {
    font-size: 13px;
}

.skyseo-editor-panel .skyseo-ai-schema-form-card-body .skyseo-ai-schema-field label {
    font-size: 11px;
}

.skyseo-editor-panel .skyseo-ai-schema-type-badge {
    font-size: 10px;
    padding: 2px 8px;
}

@keyframes skyseoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
