/* ================================
   SCHEMA GENERATOR STYLING (Scoped)
   ================================ */

/* Wrapper ensures tool is centered */
#schema-generator-wrapper {
    display: flex;              /* Only apply flex to this wrapper */
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Main schema generator box */
#schema-generator {
    flex: 1 1 auto;
    max-width: 900px;
    background: #fffbf3;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    box-sizing: border-box;
}

/* Title */
#schema-generator .sgt-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

/* Labels */
#schema-generator .sgt-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Inputs */
#schema-generator .sgt-select,
#schema-generator .sgt-input,
#schema-generator .sgt-textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Buttons wrapper */
#schema-generator .sgt-buttons {
    text-align: center;
    margin-bottom: 30px;
}

/* Standard buttons */
#schema-generator .sgt-btn {
    margin: 5px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
#schema-generator .sgt-btn:hover {
    background: #005177;
}

/* Output label */
#schema-generator .sgt-subtitle {
    margin-top: 0;
    font-size: 18px;
    font-weight: bold;
}

/* Output textarea */
#schema-generator .sgt-output {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: monospace;
    font-size: 13px;
    resize: vertical;
}

/* Copy button */
#schema-generator .sgt-copy-button {
    text-align: center;
    margin-top: 10px;
}

/* Repeatable field button */
#schema-generator .sgt-btn-repeat {
    display: block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
#schema-generator .sgt-btn-repeat:hover {
    background: #218838;
}

/* Field wrapper */
#schema-generator .sgt-field {
    margin-bottom: 15px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    #schema-generator {
        padding: 20px;
    }
    #schema-generator .sgt-btn {
        width: 100%;
    }
}